home *** CD-ROM | disk | FTP | other *** search
/ American Osteopathic Ass…tion Yearbook 2005 & 2006 / American Osteopathic Association Yearbook 2005 & 2006.iso / mac / app / BaseHTTPServer.pyc < prev    next >
Unknown  |  2004-07-22  |  21.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Python Compiled Bytecode (document/pythonCompiled) magic Supported
100% file python 2.3 byte-compiled default
99% file data default
100% TrID Python optimized code default
100% siegfried fmt/1109 Python Compiled File (2.3) default
100% gt2 Kompilierter Phyton Source Code default
100% detectItEasy Format: Python Compiled Module(2.3a0) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b f2 0d 0a 00 00 00 00 | 63 00 00 00 00 00 00 00 |;.......|c.......|
|00000010| 00 04 00 00 00 40 00 00 | 00 73 b4 00 00 00 64 00 |.....@..|.s....d.|
|00000020| 00 5a 00 00 64 01 00 5a | 01 00 64 02 00 64 03 00 |.Z..d..Z|..d..d..|
|00000030| 67 02 00 5a 02 00 64 04 | 00 6b 03 00 5a 03 00 64 |g..Z..d.|.k..Z..d|
|00000040| 04 00 6b 04 00 5a 04 00 | 64 04 00 6b 05 00 5a 05 |..k..Z..|d..k..Z.|
|00000050| 00 64 04 00 6b 06 00 5a | 06 00 64 04 00 6b 07 00 |.d..k..Z|..d..k..|
|00000060| 5a 07 00 64 04 00 6b 08 | 00 5a 08 00 64 05 00 5a |Z..d..k.|.Z..d..Z|
|00000070| 09 00 64 02 00 65 07 00 | 69 0a 00 66 01 00 64 06 |..d..e..|i..f..d.|
|00000080| 00 84 00 00 83 00 00 59 | 5a 0b 00 64 03 00 65 07 |.......Y|Z..d..e.|
|00000090| 00 69 0c 00 66 01 00 64 | 07 00 84 00 00 83 00 00 |.i..f..d|........|
|000000a0| 59 5a 0d 00 65 0d 00 65 | 0b 00 64 08 00 64 09 00 |YZ..e..e|..d..d..|
|000000b0| 84 03 00 5a 0e 00 65 0f | 00 64 0a 00 6a 02 00 6f |...Z..e.|.d..j..o|
|000000c0| 0b 00 01 65 0e 00 83 00 | 00 01 6e 01 00 01 64 04 |...e....|..n...d.|
|000000d0| 00 53 28 0b 00 00 00 73 | 0a 02 00 00 48 54 54 50 |.S(....s|....HTTP|
|000000e0| 20 73 65 72 76 65 72 20 | 62 61 73 65 20 63 6c 61 | server |base cla|
|000000f0| 73 73 2e 0a 0a 4e 6f 74 | 65 3a 20 74 68 65 20 63 |ss...Not|e: the c|
|00000100| 6c 61 73 73 20 69 6e 20 | 74 68 69 73 20 6d 6f 64 |lass in |this mod|
|00000110| 75 6c 65 20 64 6f 65 73 | 6e 27 74 20 69 6d 70 6c |ule does|n't impl|
|00000120| 65 6d 65 6e 74 20 61 6e | 79 20 48 54 54 50 20 72 |ement an|y HTTP r|
|00000130| 65 71 75 65 73 74 3b 20 | 73 65 65 0a 53 69 6d 70 |equest; |see.Simp|
|00000140| 6c 65 48 54 54 50 53 65 | 72 76 65 72 20 66 6f 72 |leHTTPSe|rver for|
|00000150| 20 73 69 6d 70 6c 65 20 | 69 6d 70 6c 65 6d 65 6e | simple |implemen|
|00000160| 74 61 74 69 6f 6e 73 20 | 6f 66 20 47 45 54 2c 20 |tations |of GET, |
|00000170| 48 45 41 44 20 61 6e 64 | 20 50 4f 53 54 0a 28 69 |HEAD and| POST.(i|
|00000180| 6e 63 6c 75 64 69 6e 67 | 20 43 47 49 20 73 63 72 |ncluding| CGI scr|
|00000190| 69 70 74 73 29 2e 20 20 | 49 74 20 64 6f 65 73 2c |ipts). |It does,|
|000001a0| 20 68 6f 77 65 76 65 72 | 2c 20 6f 70 74 69 6f 6e | however|, option|
|000001b0| 61 6c 6c 79 20 69 6d 70 | 6c 65 6d 65 6e 74 20 48 |ally imp|lement H|
|000001c0| 54 54 50 2f 31 2e 31 0a | 70 65 72 73 69 73 74 65 |TTP/1.1.|persiste|
|000001d0| 6e 74 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 73 2c 20 |nt conne|ctions, |
|000001e0| 61 73 20 6f 66 20 76 65 | 72 73 69 6f 6e 20 30 2e |as of ve|rsion 0.|
|000001f0| 33 2e 0a 0a 43 6f 6e 74 | 65 6e 74 73 3a 0a 0a 2d |3...Cont|ents:..-|
|00000200| 20 42 61 73 65 48 54 54 | 50 52 65 71 75 65 73 74 | BaseHTT|PRequest|
|00000210| 48 61 6e 64 6c 65 72 3a | 20 48 54 54 50 20 72 65 |Handler:| HTTP re|
|00000220| 71 75 65 73 74 20 68 61 | 6e 64 6c 65 72 20 62 61 |quest ha|ndler ba|
|00000230| 73 65 20 63 6c 61 73 73 | 0a 2d 20 74 65 73 74 3a |se class|.- test:|
|00000240| 20 74 65 73 74 20 66 75 | 6e 63 74 69 6f 6e 0a 0a | test fu|nction..|
|00000250| 58 58 58 20 54 6f 20 64 | 6f 3a 0a 0a 2d 20 6c 6f |XXX To d|o:..- lo|
|00000260| 67 20 72 65 71 75 65 73 | 74 73 20 65 76 65 6e 20 |g reques|ts even |
|00000270| 6c 61 74 65 72 20 28 74 | 6f 20 63 61 70 74 75 72 |later (t|o captur|
|00000280| 65 20 62 79 74 65 20 63 | 6f 75 6e 74 29 0a 2d 20 |e byte c|ount).- |
|00000290| 6c 6f 67 20 75 73 65 72 | 2d 61 67 65 6e 74 20 68 |log user|-agent h|
|000002a0| 65 61 64 65 72 20 61 6e | 64 20 6f 74 68 65 72 20 |eader an|d other |
|000002b0| 69 6e 74 65 72 65 73 74 | 69 6e 67 20 67 6f 6f 64 |interest|ing good|
|000002c0| 69 65 73 0a 2d 20 73 65 | 6e 64 20 65 72 72 6f 72 |ies.- se|nd error|
|000002d0| 20 6c 6f 67 20 74 6f 20 | 73 65 70 61 72 61 74 65 | log to |separate|
|000002e0| 20 66 69 6c 65 0a 73 03 | 00 00 00 30 2e 33 73 0a | file.s.|...0.3s.|
|000002f0| 00 00 00 48 54 54 50 53 | 65 72 76 65 72 73 16 00 |...HTTPS|ervers..|
|00000300| 00 00 42 61 73 65 48 54 | 54 50 52 65 71 75 65 73 |..BaseHT|TPReques|
|00000310| 74 48 61 6e 64 6c 65 72 | 4e 73 b8 00 00 00 3c 68 |tHandler|Ns....<h|
|00000320| 65 61 64 3e 0a 3c 74 69 | 74 6c 65 3e 45 72 72 6f |ead>.<ti|tle>Erro|
|00000330| 72 20 72 65 73 70 6f 6e | 73 65 3c 2f 74 69 74 6c |r respon|se</titl|
|00000340| 65 3e 0a 3c 2f 68 65 61 | 64 3e 0a 3c 62 6f 64 79 |e>.</hea|d>.<body|
|00000350| 3e 0a 3c 68 31 3e 45 72 | 72 6f 72 20 72 65 73 70 |>.<h1>Er|ror resp|
|00000360| 6f 6e 73 65 3c 2f 68 31 | 3e 0a 3c 70 3e 45 72 72 |onse</h1|>.<p>Err|
|00000370| 6f 72 20 63 6f 64 65 20 | 25 28 63 6f 64 65 29 64 |or code |%(code)d|
|00000380| 2e 0a 3c 70 3e 4d 65 73 | 73 61 67 65 3a 20 25 28 |..<p>Mes|sage: %(|
|00000390| 6d 65 73 73 61 67 65 29 | 73 2e 0a 3c 70 3e 45 72 |message)|s..<p>Er|
|000003a0| 72 6f 72 20 63 6f 64 65 | 20 65 78 70 6c 61 6e 61 |ror code| explana|
|000003b0| 74 69 6f 6e 3a 20 25 28 | 63 6f 64 65 29 73 20 3d |tion: %(|code)s =|
|000003c0| 20 25 28 65 78 70 6c 61 | 69 6e 29 73 2e 0a 3c 2f | %(expla|in)s..</|
|000003d0| 62 6f 64 79 3e 0a 63 00 | 00 00 00 00 00 00 00 01 |body>.c.|........|
|000003e0| 00 00 00 42 00 00 00 73 | 17 00 00 00 74 00 00 5a |...B...s|....t..Z|
|000003f0| 01 00 64 01 00 5a 02 00 | 64 02 00 84 00 00 5a 03 |..d..Z..|d.....Z.|
|00000400| 00 52 53 28 03 00 00 00 | 4e 69 01 00 00 00 63 01 |.RS(....|Ni....c.|
|00000410| 00 00 00 03 00 00 00 02 | 00 00 00 43 00 00 00 73 |........|...C...s|
|00000420| 48 00 00 00 74 00 00 69 | 01 00 69 02 00 7c 00 00 |H...t..i|..i..|..|
|00000430| 83 01 00 01 7c 00 00 69 | 04 00 69 05 00 83 00 00 |....|..i|..i.....|
|00000440| 64 01 00 20 5c 02 00 7d | 01 00 7d 02 00 74 04 00 |d.. \..}|..}..t..|
|00000450| 69 08 00 7c 01 00 83 01 | 00 7c 00 00 5f 09 00 7c |i..|....|.|.._..||
|00000460| 02 00 7c 00 00 5f 0a 00 | 64 02 00 53 28 03 00 00 |..|.._..|d..S(...|
|00000470| 00 73 2e 00 00 00 4f 76 | 65 72 72 69 64 65 20 73 |.s....Ov|erride s|
|00000480| 65 72 76 65 72 5f 62 69 | 6e 64 20 74 6f 20 73 74 |erver_bi|nd to st|
|00000490| 6f 72 65 20 74 68 65 20 | 73 65 72 76 65 72 20 6e |ore the |server n|
|000004a0| 61 6d 65 2e 69 02 00 00 | 00 4e 28 0b 00 00 00 73 |ame.i...|.N(....s|
|000004b0| 0c 00 00 00 53 6f 63 6b | 65 74 53 65 72 76 65 72 |....Sock|etServer|
|000004c0| 73 09 00 00 00 54 43 50 | 53 65 72 76 65 72 73 0b |s....TCP|Servers.|
|000004d0| 00 00 00 73 65 72 76 65 | 72 5f 62 69 6e 64 73 04 |...serve|r_binds.|
|000004e0| 00 00 00 73 65 6c 66 73 | 06 00 00 00 73 6f 63 6b |...selfs|....sock|
|000004f0| 65 74 73 0b 00 00 00 67 | 65 74 73 6f 63 6b 6e 61 |ets....g|etsockna|
|00000500| 6d 65 73 04 00 00 00 68 | 6f 73 74 73 04 00 00 00 |mes....h|osts....|
|00000510| 70 6f 72 74 73 07 00 00 | 00 67 65 74 66 71 64 6e |ports...|.getfqdn|
|00000520| 73 0b 00 00 00 73 65 72 | 76 65 72 5f 6e 61 6d 65 |s....ser|ver_name|
|00000530| 73 0b 00 00 00 73 65 72 | 76 65 72 5f 70 6f 72 74 |s....ser|ver_port|
|00000540| 28 03 00 00 00 73 04 00 | 00 00 73 65 6c 66 73 04 |(....s..|..selfs.|
|00000550| 00 00 00 68 6f 73 74 73 | 04 00 00 00 70 6f 72 74 |...hosts|....port|
|00000560| 28 00 00 00 00 28 00 00 | 00 00 73 51 00 00 00 2f |(....(..|..sQ.../|
|00000570| 4c 69 62 72 61 72 79 2f | 46 72 61 6d 65 77 6f 72 |Library/|Framewor|
|00000580| 6b 73 2f 50 79 74 68 6f | 6e 2e 66 72 61 6d 65 77 |ks/Pytho|n.framew|
|00000590| 6f 72 6b 2f 56 65 72 73 | 69 6f 6e 73 2f 32 2e 33 |ork/Vers|ions/2.3|
|000005a0| 2f 6c 69 62 2f 70 79 74 | 68 6f 6e 32 2e 33 2f 42 |/lib/pyt|hon2.3/B|
|000005b0| 61 73 65 48 54 54 50 53 | 65 72 76 65 72 2e 70 79 |aseHTTPS|erver.py|
|000005c0| 73 0b 00 00 00 73 65 72 | 76 65 72 5f 62 69 6e 64 |s....ser|ver_bind|
|000005d0| 62 00 00 00 73 0a 00 00 | 00 00 01 00 01 10 01 19 |b...s...|........|
|000005e0| 01 12 01 28 04 00 00 00 | 73 08 00 00 00 5f 5f 6e |...(....|s....__n|
|000005f0| 61 6d 65 5f 5f 73 0a 00 | 00 00 5f 5f 6d 6f 64 75 |ame__s..|..__modu|
|00000600| 6c 65 5f 5f 73 13 00 00 | 00 61 6c 6c 6f 77 5f 72 |le__s...|.allow_r|
|00000610| 65 75 73 65 5f 61 64 64 | 72 65 73 73 73 0b 00 00 |euse_add|resss...|
|00000620| 00 73 65 72 76 65 72 5f | 62 69 6e 64 28 00 00 00 |.server_|bind(...|
|00000630| 00 28 00 00 00 00 28 00 | 00 00 00 73 51 00 00 00 |.(....(.|...sQ...|
|00000640| 2f 4c 69 62 72 61 72 79 | 2f 46 72 61 6d 65 77 6f |/Library|/Framewo|
|00000650| 72 6b 73 2f 50 79 74 68 | 6f 6e 2e 66 72 61 6d 65 |rks/Pyth|on.frame|
|00000660| 77 6f 72 6b 2f 56 65 72 | 73 69 6f 6e 73 2f 32 2e |work/Ver|sions/2.|
|00000670| 33 2f 6c 69 62 2f 70 79 | 74 68 6f 6e 32 2e 33 2f |3/lib/py|thon2.3/|
|00000680| 42 61 73 65 48 54 54 50 | 53 65 72 76 65 72 2e 70 |BaseHTTP|Server.p|
|00000690| 79 73 0a 00 00 00 48 54 | 54 50 53 65 72 76 65 72 |ys....HT|TPServer|
|000006a0| 5e 00 00 00 73 04 00 00 | 00 06 02 06 02 63 00 00 |^...s...|.....c..|
|000006b0| 00 00 00 00 00 00 0d 00 | 00 00 42 00 00 00 73 74 |........|..B...st|
|000006c0| 03 00 00 74 00 00 5a 01 | 00 64 00 00 5a 02 00 64 |...t..Z.|.d..Z..d|
|000006d0| 01 00 65 03 00 69 04 00 | 69 05 00 83 00 00 64 02 |..e..i..|i.....d.|
|000006e0| 00 19 17 5a 06 00 64 03 | 00 65 07 00 17 5a 08 00 |...Z..d.|.e...Z..|
|000006f0| 64 04 00 84 00 00 5a 09 | 00 64 05 00 84 00 00 5a |d.....Z.|.d.....Z|
|00000700| 0a 00 64 06 00 84 00 00 | 5a 0b 00 65 0c 00 64 07 |..d.....|Z..e..d.|
|00000710| 00 84 01 00 5a 0d 00 65 | 0e 00 5a 0f 00 65 0c 00 |....Z..e|..Z..e..|
|00000720| 64 08 00 84 01 00 5a 10 | 00 64 09 00 84 00 00 5a |d.....Z.|.d.....Z|
|00000730| 11 00 64 0a 00 84 00 00 | 5a 12 00 64 0b 00 64 0b |..d.....|Z..d..d.|
|00000740| 00 64 0c 00 84 02 00 5a | 13 00 64 0d 00 84 00 00 |.d.....Z|..d.....|
|00000750| 5a 14 00 64 0e 00 84 00 | 00 5a 15 00 64 0f 00 84 |Z..d....|.Z..d...|
|00000760| 00 00 5a 16 00 64 10 00 | 84 00 00 5a 17 00 64 11 |..Z..d..|...Z..d.|
|00000770| 00 84 00 00 5a 18 00 64 | 12 00 64 13 00 64 14 00 |....Z..d|..d..d..|
|00000780| 64 15 00 64 16 00 64 17 | 00 64 18 00 67 07 00 5a |d..d..d.|.d..g..Z|
|00000790| 19 00 65 0c 00 64 19 00 | 64 1a 00 64 1b 00 64 1c |..e..d..|d..d..d.|
|000007a0| 00 64 1d 00 64 1e 00 64 | 1f 00 64 20 00 64 21 00 |.d..d..d|..d .d!.|
|000007b0| 64 22 00 64 23 00 64 24 | 00 67 0d 00 5a 1a 00 64 |d".d#.d$|.g..Z..d|
|000007c0| 25 00 84 00 00 5a 1b 00 | 64 26 00 5a 1c 00 65 1d |%....Z..|d&.Z..e.|
|000007d0| 00 69 1e 00 5a 1f 00 68 | 00 00 04 64 27 00 64 28 |.i..Z..h|...d'.d(|
|000007e0| 00 64 29 00 66 02 00 03 | 3c 04 64 2a 00 64 2b 00 |.d).f...|<.d*.d+.|
|000007f0| 64 2c 00 66 02 00 03 3c | 04 64 2d 00 64 2e 00 64 |d,.f...<|.d-.d..d|
|00000800| 2f 00 66 02 00 03 3c 04 | 64 30 00 64 31 00 64 32 |/.f...<.|d0.d1.d2|
|00000810| 00 66 02 00 03 3c 04 64 | 33 00 64 34 00 64 35 00 |.f...<.d|3.d4.d5.|
|00000820| 66 02 00 03 3c 04 64 36 | 00 64 37 00 64 38 00 66 |f...<.d6|.d7.d8.f|
|00000830| 02 00 03 3c 04 64 39 00 | 64 3a 00 64 3b 00 66 02 |...<.d9.|d:.d;.f.|
|00000840| 00 03 3c 04 64 3c 00 64 | 3d 00 64 3e 00 66 02 00 |..<.d<.d|=.d>.f..|
|00000850| 03 3c 04 64 3f 00 64 40 | 00 64 41 00 66 02 00 03 |.<.d?.d@|.dA.f...|
|00000860| 3c 04 64 42 00 64 43 00 | 64 44 00 66 02 00 03 3c |<.dB.dC.|dD.f...<|
|00000870| 04 64 45 00 64 46 00 64 | 47 00 66 02 00 03 3c 04 |.dE.dF.d|G.f...<.|
|00000880| 64 48 00 64 49 00 64 4a | 00 66 02 00 03 3c 04 64 |dH.dI.dJ|.f...<.d|
|00000890| 4b 00 64 4c 00 64 4d 00 | 66 02 00 03 3c 04 64 4e |K.dL.dM.|f...<.dN|
|000008a0| 00 64 4f 00 64 50 00 66 | 02 00 03 3c 04 64 51 00 |.dO.dP.f|...<.dQ.|
|000008b0| 64 52 00 64 53 00 66 02 | 00 03 3c 04 64 54 00 64 |dR.dS.f.|..<.dT.d|
|000008c0| 55 00 64 4a 00 66 02 00 | 03 3c 04 64 56 00 64 57 |U.dJ.f..|.<.dV.dW|
|000008d0| 00 64 58 00 66 02 00 03 | 3c 04 64 59 00 64 5a 00 |.dX.f...|<.dY.dZ.|
|000008e0| 64 5b 00 66 02 00 03 3c | 04 64 5c 00 64 5d 00 64 |d[.f...<|.d\.d].d|
|000008f0| 5e 00 66 02 00 03 3c 04 | 64 5f 00 64 60 00 64 61 |^.f...<.|d_.d`.da|
|00000900| 00 66 02 00 03 3c 04 64 | 62 00 64 63 00 64 64 00 |.f...<.d|b.dc.dd.|
|00000910| 66 02 00 03 3c 04 64 65 | 00 64 66 00 64 67 00 66 |f...<.de|.df.dg.f|
|00000920| 02 00 03 3c 04 64 68 00 | 64 69 00 64 6a 00 66 02 |...<.dh.|di.dj.f.|
|00000930| 00 03 3c 04 64 6b 00 64 | 6c 00 64 6d 00 66 02 00 |..<.dk.d|l.dm.f..|
|00000940| 03 3c 04 64 6e 00 64 6f | 00 64 70 00 66 02 00 03 |.<.dn.do|.dp.f...|
|00000950| 3c 04 64 71 00 64 72 00 | 64 73 00 66 02 00 03 3c |<.dq.dr.|ds.f...<|
|00000960| 04 64 74 00 64 75 00 64 | 76 00 66 02 00 03 3c 04 |.dt.du.d|v.f...<.|
|00000970| 64 77 00 64 78 00 64 79 | 00 66 02 00 03 3c 04 64 |dw.dx.dy|.f...<.d|
|00000980| 7a 00 64 7b 00 64 7c 00 | 66 02 00 03 3c 04 64 7d |z.d{.d|.|f...<.d}|
|00000990| 00 64 7e 00 64 7f 00 66 | 02 00 03 3c 04 64 80 00 |.d~.d..f|...<.d..|
|000009a0| 64 81 00 64 82 00 66 02 | 00 03 3c 04 64 83 00 64 |d..d..f.|..<.d..d|
|000009b0| 84 00 64 85 00 66 02 00 | 03 3c 04 64 86 00 64 87 |..d..f..|.<.d..d.|
|000009c0| 00 64 88 00 66 02 00 03 | 3c 04 64 89 00 64 8a 00 |.d..f...|<.d..d..|
|000009d0| 64 8b 00 66 02 00 03 3c | 04 64 8c 00 64 8d 00 64 |d..f...<|.d..d..d|
|000009e0| 8e 00 66 02 00 03 3c 04 | 64 8f 00 64 90 00 64 91 |..f...<.|d..d..d.|
|000009f0| 00 66 02 00 03 3c 04 64 | 92 00 64 93 00 64 94 00 |.f...<.d|..d..d..|
|00000a00| 66 02 00 03 3c 04 64 95 | 00 64 96 00 64 97 00 66 |f...<.d.|.d..d..f|
|00000a10| 02 00 03 3c 04 64 98 00 | 64 99 00 64 9a 00 66 02 |...<.d..|d..d..f.|
|00000a20| 00 03 3c 04 64 9b 00 64 | 9c 00 64 9d 00 66 02 00 |..<.d..d|..d..f..|
|00000a30| 03 3c 5a 20 00 52 53 28 | 9e 00 00 00 73 bb 0e 00 |.<Z .RS(|....s...|
|00000a40| 00 48 54 54 50 20 72 65 | 71 75 65 73 74 20 68 61 |.HTTP re|quest ha|
|00000a50| 6e 64 6c 65 72 20 62 61 | 73 65 20 63 6c 61 73 73 |ndler ba|se class|
|00000a60| 2e 0a 0a 20 20 20 20 54 | 68 65 20 66 6f 6c 6c 6f |... T|he follo|
|00000a70| 77 69 6e 67 20 65 78 70 | 6c 61 6e 61 74 69 6f 6e |wing exp|lanation|
|00000a80| 20 6f 66 20 48 54 54 50 | 20 73 65 72 76 65 73 20 | of HTTP| serves |
|00000a90| 74 6f 20 67 75 69 64 65 | 20 79 6f 75 20 74 68 72 |to guide| you thr|
|00000aa0| 6f 75 67 68 20 74 68 65 | 0a 20 20 20 20 63 6f 64 |ough the|. cod|
|00000ab0| 65 20 61 73 20 77 65 6c | 6c 20 61 73 20 74 6f 20 |e as wel|l as to |
|00000ac0| 65 78 70 6f 73 65 20 61 | 6e 79 20 6d 69 73 75 6e |expose a|ny misun|
|00000ad0| 64 65 72 73 74 61 6e 64 | 69 6e 67 73 20 49 20 6d |derstand|ings I m|
|00000ae0| 61 79 20 68 61 76 65 20 | 61 62 6f 75 74 0a 20 20 |ay have |about. |
|00000af0| 20 20 48 54 54 50 20 28 | 73 6f 20 79 6f 75 20 64 | HTTP (|so you d|
|00000b00| 6f 6e 27 74 20 6e 65 65 | 64 20 74 6f 20 72 65 61 |on't nee|d to rea|
|00000b10| 64 20 74 68 65 20 63 6f | 64 65 20 74 6f 20 66 69 |d the co|de to fi|
|00000b20| 67 75 72 65 20 6f 75 74 | 20 49 27 6d 20 77 72 6f |gure out| I'm wro|
|00000b30| 6e 67 0a 20 20 20 20 3a | 2d 29 2e 0a 0a 20 20 20 |ng. :|-)... |
|00000b40| 20 48 54 54 50 20 28 48 | 79 70 65 72 54 65 78 74 | HTTP (H|yperText|
|00000b50| 20 54 72 61 6e 73 66 65 | 72 20 50 72 6f 74 6f 63 | Transfe|r Protoc|
|00000b60| 6f 6c 29 20 69 73 20 61 | 6e 20 65 78 74 65 6e 73 |ol) is a|n extens|
|00000b70| 69 62 6c 65 20 70 72 6f | 74 6f 63 6f 6c 20 6f 6e |ible pro|tocol on|
|00000b80| 0a 20 20 20 20 74 6f 70 | 20 6f 66 20 61 20 72 65 |. top| of a re|
|00000b90| 6c 69 61 62 6c 65 20 73 | 74 72 65 61 6d 20 74 72 |liable s|tream tr|
|00000ba0| 61 6e 73 70 6f 72 74 20 | 28 65 2e 67 2e 20 54 43 |ansport |(e.g. TC|
|00000bb0| 50 2f 49 50 29 2e 20 20 | 54 68 65 20 70 72 6f 74 |P/IP). |The prot|
|00000bc0| 6f 63 6f 6c 0a 20 20 20 | 20 72 65 63 6f 67 6e 69 |ocol. | recogni|
|00000bd0| 7a 65 73 20 74 68 72 65 | 65 20 70 61 72 74 73 20 |zes thre|e parts |
|00000be0| 74 6f 20 61 20 72 65 71 | 75 65 73 74 3a 0a 0a 20 |to a req|uest:.. |
|00000bf0| 20 20 20 31 2e 20 4f 6e | 65 20 6c 69 6e 65 20 69 | 1. On|e line i|
|00000c00| 64 65 6e 74 69 66 79 69 | 6e 67 20 74 68 65 20 72 |dentifyi|ng the r|
|00000c10| 65 71 75 65 73 74 20 74 | 79 70 65 20 61 6e 64 20 |equest t|ype and |
|00000c20| 70 61 74 68 0a 20 20 20 | 20 32 2e 20 41 6e 20 6f |path. | 2. An o|
|00000c30| 70 74 69 6f 6e 61 6c 20 | 73 65 74 20 6f 66 20 52 |ptional |set of R|
|00000c40| 46 43 2d 38 32 32 2d 73 | 74 79 6c 65 20 68 65 61 |FC-822-s|tyle hea|
|00000c50| 64 65 72 73 0a 20 20 20 | 20 33 2e 20 41 6e 20 6f |ders. | 3. An o|
|00000c60| 70 74 69 6f 6e 61 6c 20 | 64 61 74 61 20 70 61 72 |ptional |data par|
|00000c70| 74 0a 0a 20 20 20 20 54 | 68 65 20 68 65 61 64 65 |t.. T|he heade|
|00000c80| 72 73 20 61 6e 64 20 64 | 61 74 61 20 61 72 65 20 |rs and d|ata are |
|00000c90| 73 65 70 61 72 61 74 65 | 64 20 62 79 20 61 20 62 |separate|d by a b|
|00000ca0| 6c 61 6e 6b 20 6c 69 6e | 65 2e 0a 0a 20 20 20 20 |lank lin|e... |
|00000cb0| 54 68 65 20 66 69 72 73 | 74 20 6c 69 6e 65 20 6f |The firs|t line o|
|00000cc0| 66 20 74 68 65 20 72 65 | 71 75 65 73 74 20 68 61 |f the re|quest ha|
|00000cd0| 73 20 74 68 65 20 66 6f | 72 6d 0a 0a 20 20 20 20 |s the fo|rm.. |
|00000ce0| 3c 63 6f 6d 6d 61 6e 64 | 3e 20 3c 70 61 74 68 3e |<command|> <path>|
|00000cf0| 20 3c 76 65 72 73 69 6f | 6e 3e 0a 0a 20 20 20 20 | <versio|n>.. |
|00000d00| 77 68 65 72 65 20 3c 63 | 6f 6d 6d 61 6e 64 3e 20 |where <c|ommand> |
|00000d10| 69 73 20 61 20 28 63 61 | 73 65 2d 73 65 6e 73 69 |is a (ca|se-sensi|
|00000d20| 74 69 76 65 29 20 6b 65 | 79 77 6f 72 64 20 73 75 |tive) ke|yword su|
|00000d30| 63 68 20 61 73 20 47 45 | 54 20 6f 72 20 50 4f 53 |ch as GE|T or POS|
|00000d40| 54 2c 0a 20 20 20 20 3c | 70 61 74 68 3e 20 69 73 |T,. <|path> is|
|00000d50| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 | a strin|g contai|
|00000d60| 6e 69 6e 67 20 70 61 74 | 68 20 69 6e 66 6f 72 6d |ning pat|h inform|
|00000d70| 61 74 69 6f 6e 20 66 6f | 72 20 74 68 65 20 72 65 |ation fo|r the re|
|00000d80| 71 75 65 73 74 2c 0a 20 | 20 20 20 61 6e 64 20 3c |quest,. | and <|
|00000d90| 76 65 72 73 69 6f 6e 3e | 20 73 68 6f 75 6c 64 20 |version>| should |
|00000da0| 62 65 20 74 68 65 20 73 | 74 72 69 6e 67 20 22 48 |be the s|tring "H|
|00000db0| 54 54 50 2f 31 2e 30 22 | 20 6f 72 20 22 48 54 54 |TTP/1.0"| or "HTT|
|00000dc0| 50 2f 31 2e 31 22 2e 0a | 20 20 20 20 3c 70 61 74 |P/1.1"..| <pat|
|00000dd0| 68 3e 20 69 73 20 65 6e | 63 6f 64 65 64 20 75 73 |h> is en|coded us|
|00000de0| 69 6e 67 20 74 68 65 20 | 55 52 4c 20 65 6e 63 6f |ing the |URL enco|
|00000df0| 64 69 6e 67 20 73 63 68 | 65 6d 65 20 28 75 73 69 |ding sch|eme (usi|
|00000e00| 6e 67 20 25 78 78 20 74 | 6f 20 73 69 67 6e 69 66 |ng %xx t|o signif|
|00000e10| 79 0a 20 20 20 20 74 68 | 65 20 41 53 43 49 49 20 |y. th|e ASCII |
|00000e20| 63 68 61 72 61 63 74 65 | 72 20 77 69 74 68 20 68 |characte|r with h|
|00000e30| 65 78 20 63 6f 64 65 20 | 78 78 29 2e 0a 0a 20 20 |ex code |xx)... |
|00000e40| 20 20 54 68 65 20 73 70 | 65 63 69 66 69 63 61 74 | The sp|ecificat|
|00000e50| 69 6f 6e 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |ion spec|ifies th|
|00000e60| 61 74 20 6c 69 6e 65 73 | 20 61 72 65 20 73 65 70 |at lines| are sep|
|00000e70| 61 72 61 74 65 64 20 62 | 79 20 43 52 4c 46 20 62 |arated b|y CRLF b|
|00000e80| 75 74 0a 20 20 20 20 66 | 6f 72 20 63 6f 6d 70 61 |ut. f|or compa|
|00000e90| 74 69 62 69 6c 69 74 79 | 20 77 69 74 68 20 74 68 |tibility| with th|
|00000ea0| 65 20 77 69 64 65 73 74 | 20 72 61 6e 67 65 20 6f |e widest| range o|
|00000eb0| 66 20 63 6c 69 65 6e 74 | 73 20 72 65 63 6f 6d 6d |f client|s recomm|
|00000ec0| 65 6e 64 73 0a 20 20 20 | 20 73 65 72 76 65 72 73 |ends. | servers|
|00000ed0| 20 61 6c 73 6f 20 68 61 | 6e 64 6c 65 20 4c 46 2e | also ha|ndle LF.|
|00000ee0| 20 20 53 69 6d 69 6c 61 | 72 6c 79 2c 20 77 68 69 | Simila|rly, whi|
|00000ef0| 74 65 73 70 61 63 65 20 | 69 6e 20 74 68 65 20 72 |tespace |in the r|
|00000f00| 65 71 75 65 73 74 20 6c | 69 6e 65 0a 20 20 20 20 |equest l|ine. |
|00000f10| 69 73 20 74 72 65 61 74 | 65 64 20 73 65 6e 73 69 |is treat|ed sensi|
|00000f20| 62 6c 79 20 28 61 6c 6c | 6f 77 69 6e 67 20 6d 75 |bly (all|owing mu|
|00000f30| 6c 74 69 70 6c 65 20 73 | 70 61 63 65 73 20 62 65 |ltiple s|paces be|
|00000f40| 74 77 65 65 6e 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |tween co|mponents|
|00000f50| 0a 20 20 20 20 61 6e 64 | 20 61 6c 6c 6f 77 69 6e |. and| allowin|
|00000f60| 67 20 74 72 61 69 6c 69 | 6e 67 20 77 68 69 74 65 |g traili|ng white|
|00000f70| 73 70 61 63 65 29 2e 0a | 0a 20 20 20 20 53 69 6d |space)..|. Sim|
|00000f80| 69 6c 61 72 6c 79 2c 20 | 66 6f 72 20 6f 75 74 70 |ilarly, |for outp|
|00000f90| 75 74 2c 20 6c 69 6e 65 | 73 20 6f 75 67 68 74 20 |ut, line|s ought |
|00000fa0| 74 6f 20 62 65 20 73 65 | 70 61 72 61 74 65 64 20 |to be se|parated |
|00000fb0| 62 79 20 43 52 4c 46 20 | 70 61 69 72 73 0a 20 20 |by CRLF |pairs. |
|00000fc0| 20 20 62 75 74 20 6d 6f | 73 74 20 63 6c 69 65 6e | but mo|st clien|
|00000fd0| 74 73 20 67 72 6f 6b 20 | 4c 46 20 63 68 61 72 61 |ts grok |LF chara|
|00000fe0| 63 74 65 72 73 20 6a 75 | 73 74 20 66 69 6e 65 2e |cters ju|st fine.|
|00000ff0| 0a 0a 20 20 20 20 49 66 | 20 74 68 65 20 66 69 72 |.. If| the fir|
|00001000| 73 74 20 6c 69 6e 65 20 | 6f 66 20 74 68 65 20 72 |st line |of the r|
|00001010| 65 71 75 65 73 74 20 68 | 61 73 20 74 68 65 20 66 |equest h|as the f|
|00001020| 6f 72 6d 0a 0a 20 20 20 | 20 3c 63 6f 6d 6d 61 6e |orm.. | <comman|
|00001030| 64 3e 20 3c 70 61 74 68 | 3e 0a 0a 20 20 20 20 28 |d> <path|>.. (|
|00001040| 69 2e 65 2e 20 3c 76 65 | 72 73 69 6f 6e 3e 20 69 |i.e. <ve|rsion> i|
|00001050| 73 20 6c 65 66 74 20 6f | 75 74 29 20 74 68 65 6e |s left o|ut) then|
|00001060| 20 74 68 69 73 20 69 73 | 20 61 73 73 75 6d 65 64 | this is| assumed|
|00001070| 20 74 6f 20 62 65 20 61 | 6e 20 48 54 54 50 0a 20 | to be a|n HTTP. |
|00001080| 20 20 20 30 2e 39 20 72 | 65 71 75 65 73 74 3b 20 | 0.9 r|equest; |
|00001090| 74 68 69 73 20 66 6f 72 | 6d 20 68 61 73 20 6e 6f |this for|m has no|
|000010a0| 20 6f 70 74 69 6f 6e 61 | 6c 20 68 65 61 64 65 72 | optiona|l header|
|000010b0| 73 20 61 6e 64 20 64 61 | 74 61 20 70 61 72 74 20 |s and da|ta part |
|000010c0| 61 6e 64 0a 20 20 20 20 | 74 68 65 20 72 65 70 6c |and. |the repl|
|000010d0| 79 20 63 6f 6e 73 69 73 | 74 73 20 6f 66 20 6a 75 |y consis|ts of ju|
|000010e0| 73 74 20 74 68 65 20 64 | 61 74 61 2e 0a 0a 20 20 |st the d|ata... |
|000010f0| 20 20 54 68 65 20 72 65 | 70 6c 79 20 66 6f 72 6d | The re|ply form|
|00001100| 20 6f 66 20 74 68 65 20 | 48 54 54 50 20 31 2e 78 | of the |HTTP 1.x|
|00001110| 20 70 72 6f 74 6f 63 6f | 6c 20 61 67 61 69 6e 20 | protoco|l again |
|00001120| 68 61 73 20 74 68 72 65 | 65 20 70 61 72 74 73 3a |has thre|e parts:|
|00001130| 0a 0a 20 20 20 20 31 2e | 20 4f 6e 65 20 6c 69 6e |.. 1.| One lin|
|00001140| 65 20 67 69 76 69 6e 67 | 20 74 68 65 20 72 65 73 |e giving| the res|
|00001150| 70 6f 6e 73 65 20 63 6f | 64 65 0a 20 20 20 20 32 |ponse co|de. 2|
|00001160| 2e 20 41 6e 20 6f 70 74 | 69 6f 6e 61 6c 20 73 65 |. An opt|ional se|
|00001170| 74 20 6f 66 20 52 46 43 | 2d 38 32 32 2d 73 74 79 |t of RFC|-822-sty|
|00001180| 6c 65 20 68 65 61 64 65 | 72 73 0a 20 20 20 20 33 |le heade|rs. 3|
|00001190| 2e 20 54 68 65 20 64 61 | 74 61 0a 0a 20 20 20 20 |. The da|ta.. |
|000011a0| 41 67 61 69 6e 2c 20 74 | 68 65 20 68 65 61 64 65 |Again, t|he heade|
|000011b0| 72 73 20 61 6e 64 20 64 | 61 74 61 20 61 72 65 20 |rs and d|ata are |
|000011c0| 73 65 70 61 72 61 74 65 | 64 20 62 79 20 61 20 62 |separate|d by a b|
|000011d0| 6c 61 6e 6b 20 6c 69 6e | 65 2e 0a 0a 20 20 20 20 |lank lin|e... |
|000011e0| 54 68 65 20 72 65 73 70 | 6f 6e 73 65 20 63 6f 64 |The resp|onse cod|
|000011f0| 65 20 6c 69 6e 65 20 68 | 61 73 20 74 68 65 20 66 |e line h|as the f|
|00001200| 6f 72 6d 0a 0a 20 20 20 | 20 3c 76 65 72 73 69 6f |orm.. | <versio|
|00001210| 6e 3e 20 3c 72 65 73 70 | 6f 6e 73 65 63 6f 64 65 |n> <resp|onsecode|
|00001220| 3e 20 3c 72 65 73 70 6f | 6e 73 65 73 74 72 69 6e |> <respo|nsestrin|
|00001230| 67 3e 0a 0a 20 20 20 20 | 77 68 65 72 65 20 3c 76 |g>.. |where <v|
|00001240| 65 72 73 69 6f 6e 3e 20 | 69 73 20 74 68 65 20 70 |ersion> |is the p|
|00001250| 72 6f 74 6f 63 6f 6c 20 | 76 65 72 73 69 6f 6e 20 |rotocol |version |
|00001260| 28 22 48 54 54 50 2f 31 | 2e 30 22 20 6f 72 20 22 |("HTTP/1|.0" or "|
|00001270| 48 54 54 50 2f 31 2e 31 | 22 29 2c 0a 20 20 20 20 |HTTP/1.1|"),. |
|00001280| 3c 72 65 73 70 6f 6e 73 | 65 63 6f 64 65 3e 20 69 |<respons|ecode> i|
|00001290| 73 20 61 20 33 2d 64 69 | 67 69 74 20 72 65 73 70 |s a 3-di|git resp|
|000012a0| 6f 6e 73 65 20 63 6f 64 | 65 20 69 6e 64 69 63 61 |onse cod|e indica|
|000012b0| 74 69 6e 67 20 73 75 63 | 63 65 73 73 20 6f 72 0a |ting suc|cess or.|
|000012c0| 20 20 20 20 66 61 69 6c | 75 72 65 20 6f 66 20 74 | fail|ure of t|
|000012d0| 68 65 20 72 65 71 75 65 | 73 74 2c 20 61 6e 64 20 |he reque|st, and |
|000012e0| 3c 72 65 73 70 6f 6e 73 | 65 73 74 72 69 6e 67 3e |<respons|estring>|
|000012f0| 20 69 73 20 61 6e 20 6f | 70 74 69 6f 6e 61 6c 0a | is an o|ptional.|
|00001300| 20 20 20 20 68 75 6d 61 | 6e 2d 72 65 61 64 61 62 | huma|n-readab|
|00001310| 6c 65 20 73 74 72 69 6e | 67 20 65 78 70 6c 61 69 |le strin|g explai|
|00001320| 6e 69 6e 67 20 77 68 61 | 74 20 74 68 65 20 72 65 |ning wha|t the re|
|00001330| 73 70 6f 6e 73 65 20 63 | 6f 64 65 20 6d 65 61 6e |sponse c|ode mean|
|00001340| 73 2e 0a 0a 20 20 20 20 | 54 68 69 73 20 73 65 72 |s... |This ser|
|00001350| 76 65 72 20 70 61 72 73 | 65 73 20 74 68 65 20 72 |ver pars|es the r|
|00001360| 65 71 75 65 73 74 20 61 | 6e 64 20 74 68 65 20 68 |equest a|nd the h|
|00001370| 65 61 64 65 72 73 2c 20 | 61 6e 64 20 74 68 65 6e |eaders, |and then|
|00001380| 20 63 61 6c 6c 73 20 61 | 0a 20 20 20 20 66 75 6e | calls a|. fun|
|00001390| 63 74 69 6f 6e 20 73 70 | 65 63 69 66 69 63 20 74 |ction sp|ecific t|
|000013a0| 6f 20 74 68 65 20 72 65 | 71 75 65 73 74 20 74 79 |o the re|quest ty|
|000013b0| 70 65 20 28 3c 63 6f 6d | 6d 61 6e 64 3e 29 2e 20 |pe (<com|mand>). |
|000013c0| 20 53 70 65 63 69 66 69 | 63 61 6c 6c 79 2c 0a 20 | Specifi|cally,. |
|000013d0| 20 20 20 61 20 72 65 71 | 75 65 73 74 20 53 50 41 | a req|uest SPA|
|000013e0| 4d 20 77 69 6c 6c 20 62 | 65 20 68 61 6e 64 6c 65 |M will b|e handle|
|000013f0| 64 20 62 79 20 61 20 6d | 65 74 68 6f 64 20 64 6f |d by a m|ethod do|
|00001400| 5f 53 50 41 4d 28 29 2e | 20 20 49 66 20 6e 6f 0a |_SPAM().| If no.|
|00001410| 20 20 20 20 73 75 63 68 | 20 6d 65 74 68 6f 64 20 | such| method |
|00001420| 65 78 69 73 74 73 20 74 | 68 65 20 73 65 72 76 65 |exists t|he serve|
|00001430| 72 20 73 65 6e 64 73 20 | 61 6e 20 65 72 72 6f 72 |r sends |an error|
|00001440| 20 72 65 73 70 6f 6e 73 | 65 20 74 6f 20 74 68 65 | respons|e to the|
|00001450| 0a 20 20 20 20 63 6c 69 | 65 6e 74 2e 20 20 49 66 |. cli|ent. If|
|00001460| 20 69 74 20 65 78 69 73 | 74 73 2c 20 69 74 20 69 | it exis|ts, it i|
|00001470| 73 20 63 61 6c 6c 65 64 | 20 77 69 74 68 20 6e 6f |s called| with no|
|00001480| 20 61 72 67 75 6d 65 6e | 74 73 3a 0a 0a 20 20 20 | argumen|ts:.. |
|00001490| 20 64 6f 5f 53 50 41 4d | 28 29 0a 0a 20 20 20 20 | do_SPAM|().. |
|000014a0| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 72 65 |Note tha|t the re|
|000014b0| 71 75 65 73 74 20 6e 61 | 6d 65 20 69 73 20 63 61 |quest na|me is ca|
|000014c0| 73 65 20 73 65 6e 73 69 | 74 69 76 65 20 28 69 2e |se sensi|tive (i.|
|000014d0| 65 2e 20 53 50 41 4d 20 | 61 6e 64 20 73 70 61 6d |e. SPAM |and spam|
|000014e0| 0a 20 20 20 20 61 72 65 | 20 64 69 66 66 65 72 65 |. are| differe|
|000014f0| 6e 74 20 72 65 71 75 65 | 73 74 73 29 2e 0a 0a 20 |nt reque|sts)... |
|00001500| 20 20 20 54 68 65 20 76 | 61 72 69 6f 75 73 20 72 | The v|arious r|
|00001510| 65 71 75 65 73 74 20 64 | 65 74 61 69 6c 73 20 61 |equest d|etails a|
|00001520| 72 65 20 73 74 6f 72 65 | 64 20 69 6e 20 69 6e 73 |re store|d in ins|
|00001530| 74 61 6e 63 65 20 76 61 | 72 69 61 62 6c 65 73 3a |tance va|riables:|
|00001540| 0a 0a 20 20 20 20 2d 20 | 63 6c 69 65 6e 74 5f 61 |.. - |client_a|
|00001550| 64 64 72 65 73 73 20 69 | 73 20 74 68 65 20 63 6c |ddress i|s the cl|
|00001560| 69 65 6e 74 20 49 50 20 | 61 64 64 72 65 73 73 20 |ient IP |address |
|00001570| 69 6e 20 74 68 65 20 66 | 6f 72 6d 20 28 68 6f 73 |in the f|orm (hos|
|00001580| 74 2c 0a 20 20 20 20 70 | 6f 72 74 29 3b 0a 0a 20 |t,. p|ort);.. |
|00001590| 20 20 20 2d 20 63 6f 6d | 6d 61 6e 64 2c 20 70 61 | - com|mand, pa|
|000015a0| 74 68 20 61 6e 64 20 76 | 65 72 73 69 6f 6e 20 61 |th and v|ersion a|
|000015b0| 72 65 20 74 68 65 20 62 | 72 6f 6b 65 6e 2d 64 6f |re the b|roken-do|
|000015c0| 77 6e 20 72 65 71 75 65 | 73 74 20 6c 69 6e 65 3b |wn reque|st line;|
|000015d0| 0a 0a 20 20 20 20 2d 20 | 68 65 61 64 65 72 73 20 |.. - |headers |
|000015e0| 69 73 20 61 6e 20 69 6e | 73 74 61 6e 63 65 20 6f |is an in|stance o|
|000015f0| 66 20 6d 69 6d 65 74 6f | 6f 6c 73 2e 4d 65 73 73 |f mimeto|ols.Mess|
|00001600| 61 67 65 20 28 6f 72 20 | 61 20 64 65 72 69 76 65 |age (or |a derive|
|00001610| 64 0a 20 20 20 20 63 6c | 61 73 73 29 20 63 6f 6e |d. cl|ass) con|
|00001620| 74 61 69 6e 69 6e 67 20 | 74 68 65 20 68 65 61 64 |taining |the head|
|00001630| 65 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 3b 0a |er infor|mation;.|
|00001640| 0a 20 20 20 20 2d 20 72 | 66 69 6c 65 20 69 73 20 |. - r|file is |
|00001650| 61 20 66 69 6c 65 20 6f | 62 6a 65 63 74 20 6f 70 |a file o|bject op|
|00001660| 65 6e 20 66 6f 72 20 72 | 65 61 64 69 6e 67 20 70 |en for r|eading p|
|00001670| 6f 73 69 74 69 6f 6e 65 | 64 20 61 74 20 74 68 65 |ositione|d at the|
|00001680| 0a 20 20 20 20 73 74 61 | 72 74 20 6f 66 20 74 68 |. sta|rt of th|
|00001690| 65 20 6f 70 74 69 6f 6e | 61 6c 20 69 6e 70 75 74 |e option|al input|
|000016a0| 20 64 61 74 61 20 70 61 | 72 74 3b 0a 0a 20 20 20 | data pa|rt;.. |
|000016b0| 20 2d 20 77 66 69 6c 65 | 20 69 73 20 61 20 66 69 | - wfile| is a fi|
|000016c0| 6c 65 20 6f 62 6a 65 63 | 74 20 6f 70 65 6e 20 66 |le objec|t open f|
|000016d0| 6f 72 20 77 72 69 74 69 | 6e 67 2e 0a 0a 20 20 20 |or writi|ng... |
|000016e0| 20 49 54 20 49 53 20 49 | 4d 50 4f 52 54 41 4e 54 | IT IS I|MPORTANT|
|000016f0| 20 54 4f 20 41 44 48 45 | 52 45 20 54 4f 20 54 48 | TO ADHE|RE TO TH|
|00001700| 45 20 50 52 4f 54 4f 43 | 4f 4c 20 46 4f 52 20 57 |E PROTOC|OL FOR W|
|00001710| 52 49 54 49 4e 47 21 0a | 0a 20 20 20 20 54 68 65 |RITING!.|. The|
|00001720| 20 66 69 72 73 74 20 74 | 68 69 6e 67 20 74 6f 20 | first t|hing to |
|00001730| 62 65 20 77 72 69 74 74 | 65 6e 20 6d 75 73 74 20 |be writt|en must |
|00001740| 62 65 20 74 68 65 20 72 | 65 73 70 6f 6e 73 65 20 |be the r|esponse |
|00001750| 6c 69 6e 65 2e 20 20 54 | 68 65 6e 0a 20 20 20 20 |line. T|hen. |
|00001760| 66 6f 6c 6c 6f 77 20 30 | 20 6f 72 20 6d 6f 72 65 |follow 0| or more|
|00001770| 20 68 65 61 64 65 72 20 | 6c 69 6e 65 73 2c 20 74 | header |lines, t|
|00001780| 68 65 6e 20 61 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |hen a bl|ank line|
|00001790| 2c 20 61 6e 64 20 74 68 | 65 6e 20 74 68 65 0a 20 |, and th|en the. |
|000017a0| 20 20 20 61 63 74 75 61 | 6c 20 64 61 74 61 20 28 | actua|l data (|
|000017b0| 69 66 20 61 6e 79 29 2e | 20 20 54 68 65 20 6d 65 |if any).| The me|
|000017c0| 61 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 68 65 61 |aning of| the hea|
|000017d0| 64 65 72 20 6c 69 6e 65 | 73 20 64 65 70 65 6e 64 |der line|s depend|
|000017e0| 73 20 6f 6e 0a 20 20 20 | 20 74 68 65 20 63 6f 6d |s on. | the com|
|000017f0| 6d 61 6e 64 20 65 78 65 | 63 75 74 65 64 20 62 79 |mand exe|cuted by|
|00001800| 20 74 68 65 20 73 65 72 | 76 65 72 3b 20 69 6e 20 | the ser|ver; in |
|00001810| 6d 6f 73 74 20 63 61 73 | 65 73 2c 20 77 68 65 6e |most cas|es, when|
|00001820| 20 64 61 74 61 20 69 73 | 0a 20 20 20 20 72 65 74 | data is|. ret|
|00001830| 75 72 6e 65 64 2c 20 74 | 68 65 72 65 20 73 68 6f |urned, t|here sho|
|00001840| 75 6c 64 20 62 65 20 61 | 74 20 6c 65 61 73 74 20 |uld be a|t least |
|00001850| 6f 6e 65 20 68 65 61 64 | 65 72 20 6c 69 6e 65 20 |one head|er line |
|00001860| 6f 66 20 74 68 65 20 66 | 6f 72 6d 0a 0a 20 20 20 |of the f|orm.. |
|00001870| 20 43 6f 6e 74 65 6e 74 | 2d 74 79 70 65 3a 20 3c | Content|-type: <|
|00001880| 74 79 70 65 3e 2f 3c 73 | 75 62 74 79 70 65 3e 0a |type>/<s|ubtype>.|
|00001890| 0a 20 20 20 20 77 68 65 | 72 65 20 3c 74 79 70 65 |. whe|re <type|
|000018a0| 3e 20 61 6e 64 20 3c 73 | 75 62 74 79 70 65 3e 20 |> and <s|ubtype> |
|000018b0| 73 68 6f 75 6c 64 20 62 | 65 20 72 65 67 69 73 74 |should b|e regist|
|000018c0| 65 72 65 64 20 4d 49 4d | 45 20 74 79 70 65 73 2c |ered MIM|E types,|
|000018d0| 0a 20 20 20 20 65 2e 67 | 2e 20 22 74 65 78 74 2f |. e.g|. "text/|
|000018e0| 68 74 6d 6c 22 20 6f 72 | 20 22 74 65 78 74 2f 70 |html" or| "text/p|
|000018f0| 6c 61 69 6e 22 2e 0a 0a | 20 20 20 20 73 07 00 00 |lain"...| s...|
|00001900| 00 50 79 74 68 6f 6e 2f | 69 00 00 00 00 73 09 00 |.Python/|i....s..|
|00001910| 00 00 42 61 73 65 48 54 | 54 50 2f 63 01 00 00 00 |..BaseHT|TP/c....|
|00001920| 0c 00 00 00 06 00 00 00 | 43 00 00 00 73 51 03 00 |........|C...sQ..|
|00001930| 00 74 00 00 7c 00 00 5f | 02 00 64 01 00 04 7c 00 |.t..|.._|..d...|.|
|00001940| 00 5f 03 00 7d 05 00 64 | 02 00 7c 00 00 5f 05 00 |._..}..d|..|.._..|
|00001950| 7c 00 00 69 06 00 7d 02 | 00 7c 02 00 64 03 00 1f ||..i..}.|.|..d...|
|00001960| 64 04 00 6a 02 00 6f 0e | 00 01 7c 02 00 64 03 00 |d..j..o.|..|..d..|
|00001970| 20 7d 02 00 6e 20 00 01 | 7c 02 00 64 05 00 1f 64 | }..n ..||..d...d|
|00001980| 06 00 6a 02 00 6f 0e 00 | 01 7c 02 00 64 05 00 20 |..j..o..|.|..d.. |
|00001990| 7d 02 00 6e 01 00 01 7c | 02 00 7c 00 00 5f 07 00 |}..n...||..|.._..|
|000019a0| 7c 02 00 69 08 00 83 00 | 00 7d 07 00 74 0a 00 7c ||..i....|.}..t..||
|000019b0| 07 00 83 01 00 64 07 00 | 6a 02 00 6f 3b 01 01 7c |.....d..|j..o;..||
|000019c0| 07 00 5c 03 00 7d 06 00 | 7d 08 00 7d 05 00 7c 05 |..\..}..|}..}..|.|
|000019d0| 00 64 08 00 20 64 09 00 | 6a 03 00 6f 1d 00 01 7c |.d.. d..|j..o...||
|000019e0| 00 00 69 0c 00 64 0a 00 | 64 0b 00 7c 05 00 0d 16 |..i..d..|d..|....|
|000019f0| 83 02 00 01 74 0d 00 53 | 6e 01 00 01 79 66 00 7c |....t..S|n...yf.||
|00001a00| 05 00 69 08 00 64 0c 00 | 64 02 00 83 02 00 64 02 |..i..d..|d.....d.|
|00001a10| 00 19 7d 03 00 7c 03 00 | 69 08 00 64 0d 00 83 01 |..}..|..|i..d....|
|00001a20| 00 7d 0a 00 74 0a 00 7c | 0a 00 83 01 00 64 0e 00 |.}..t..||.....d..|
|00001a30| 6a 03 00 6f 0a 00 01 74 | 10 00 82 01 00 6e 01 00 |j..o...t|.....n..|
|00001a40| 01 74 11 00 7c 0a 00 64 | 0f 00 19 83 01 00 74 11 |.t..|..d|......t.|
|00001a50| 00 7c 0a 00 64 02 00 19 | 83 01 00 66 02 00 7d 0a |.|..d...|...f..}.|
|00001a60| 00 57 6e 32 00 04 74 10 | 00 74 12 00 66 02 00 6a |.Wn2..t.|.t..f..j|
|00001a70| 0a 00 6f 20 00 01 01 01 | 01 7c 00 00 69 0c 00 64 |..o ....|.|..i..d|
|00001a80| 0a 00 64 0b 00 7c 05 00 | 0d 16 83 02 00 01 74 0d |..d..|..|......t.|
|00001a90| 00 53 6e 02 00 01 58 7c | 0a 00 64 02 00 64 02 00 |.Sn...X||..d..d..|
|00001aa0| 66 02 00 6a 05 00 6f 0d | 00 01 7c 00 00 69 13 00 |f..j..o.|..|..i..|
|00001ab0| 64 10 00 6a 05 00 6f 0d | 00 01 64 0f 00 7c 00 00 |d..j..o.|..d..|..|
|00001ac0| 5f 05 00 6e 01 00 01 7c | 0a 00 64 0e 00 64 0f 00 |_..n...||..d..d..|
|00001ad0| 66 02 00 6a 05 00 6f 1c | 00 01 7c 00 00 69 0c 00 |f..j..o.|..|..i..|
|00001ae0| 64 11 00 64 12 00 7c 03 | 00 16 83 02 00 01 74 0d |d..d..|.|......t.|
|00001af0| 00 53 71 48 02 01 6e 80 | 00 01 74 0a 00 7c 07 00 |.SqH..n.|..t..|..|
|00001b00| 83 01 00 64 0e 00 6a 02 | 00 6f 43 00 01 7c 07 00 |...d..j.|.oC..|..|
|00001b10| 5c 02 00 7d 06 00 7d 08 | 00 64 02 00 7c 00 00 5f |\..}..}.|.d..|.._|
|00001b20| 05 00 7c 06 00 64 13 00 | 6a 03 00 6f 1d 00 01 7c |..|..d..|j..o...||
|00001b30| 00 00 69 0c 00 64 0a 00 | 64 14 00 7c 06 00 0d 16 |..i..d..|d..|....|
|00001b40| 83 02 00 01 74 0d 00 53 | 71 48 02 01 6e 2a 00 01 |....t..S|qH..n*..|
|00001b50| 7c 07 00 0c 6f 08 00 01 | 74 0d 00 53 6e 1a 00 01 ||...o...|t..Sn...|
|00001b60| 7c 00 00 69 0c 00 64 0a | 00 64 15 00 7c 02 00 0d ||..i..d.|.d..|...|
|00001b70| 16 83 02 00 01 74 0d 00 | 53 7c 06 00 7c 08 00 7c |.....t..|S|..|..||
|00001b80| 05 00 66 03 00 5c 03 00 | 7c 00 00 5f 02 00 7c 00 |..f..\..||.._..|.|
|00001b90| 00 5f 0b 00 7c 00 00 5f | 03 00 64 16 00 7d 01 00 |._..|.._|..d..}..|
|00001ba0| 78 51 00 6e 04 00 6f 49 | 00 01 7c 00 00 69 15 00 |xQ.n..oI|..|..i..|
|00001bb0| 69 16 00 83 00 00 7d 09 | 00 7c 01 00 7c 09 00 17 |i.....}.|.|..|...|
|00001bc0| 7d 01 00 7c 09 00 64 04 | 00 6a 02 00 70 17 00 01 |}..|..d.|.j..p...|
|00001bd0| 7c 09 00 64 06 00 6a 02 | 00 70 0a 00 01 7c 09 00 ||..d..j.|.p...|..|
|00001be0| 64 16 00 6a 02 00 6f 05 | 00 01 50 71 72 02 01 71 |d..j..o.|..Pqr..q|
|00001bf0| 79 02 01 57 74 18 00 69 | 19 00 7c 01 00 83 01 00 |y..Wt..i|..|.....|
|00001c00| 7d 0b 00 7c 00 00 69 1b | 00 7c 0b 00 83 01 00 7c |}..|..i.|.|.....||
|00001c10| 00 00 5f 1c 00 7c 00 00 | 69 1c 00 69 1d 00 64 17 |.._..|..|i..i..d.|
|00001c20| 00 64 16 00 83 02 00 7d | 04 00 7c 04 00 69 1f 00 |.d.....}|..|..i..|
|00001c30| 83 00 00 64 18 00 6a 02 | 00 6f 0d 00 01 64 02 00 |...d..j.|.o...d..|
|00001c40| 7c 00 00 5f 05 00 6e 31 | 00 01 7c 04 00 69 1f 00 ||.._..n1|..|..i..|
|00001c50| 83 00 00 64 19 00 6a 02 | 00 6f 0d 00 01 7c 00 00 |...d..j.|.o...|..|
|00001c60| 69 13 00 64 10 00 6a 05 | 00 6f 0d 00 01 64 0f 00 |i..d..j.|.o...d..|
|00001c70| 7c 00 00 5f 05 00 6e 01 | 00 01 74 20 00 53 64 1a ||.._..n.|..t .Sd.|
|00001c80| 00 53 28 1b 00 00 00 73 | 27 01 00 00 50 61 72 73 |.S(....s|'...Pars|
|00001c90| 65 20 61 20 72 65 71 75 | 65 73 74 20 28 69 6e 74 |e a requ|est (int|
|00001ca0| 65 72 6e 61 6c 29 2e 0a | 0a 20 20 20 20 20 20 20 |ernal)..|. |
|00001cb0| 20 54 68 65 20 72 65 71 | 75 65 73 74 20 73 68 6f | The req|uest sho|
|00001cc0| 75 6c 64 20 62 65 20 73 | 74 6f 72 65 64 20 69 6e |uld be s|tored in|
|00001cd0| 20 73 65 6c 66 2e 72 61 | 77 5f 72 65 71 75 65 73 | self.ra|w_reques|
|00001ce0| 74 6c 69 6e 65 3b 20 74 | 68 65 20 72 65 73 75 6c |tline; t|he resul|
|00001cf0| 74 73 0a 20 20 20 20 20 | 20 20 20 61 72 65 20 69 |ts. | are i|
|00001d00| 6e 20 73 65 6c 66 2e 63 | 6f 6d 6d 61 6e 64 2c 20 |n self.c|ommand, |
|00001d10| 73 65 6c 66 2e 70 61 74 | 68 2c 20 73 65 6c 66 2e |self.pat|h, self.|
|00001d20| 72 65 71 75 65 73 74 5f | 76 65 72 73 69 6f 6e 20 |request_|version |
|00001d30| 61 6e 64 0a 20 20 20 20 | 20 20 20 20 73 65 6c 66 |and. | self|
|00001d40| 2e 68 65 61 64 65 72 73 | 2e 0a 0a 20 20 20 20 20 |.headers|... |
|00001d50| 20 20 20 52 65 74 75 72 | 6e 20 54 72 75 65 20 66 | Retur|n True f|
|00001d60| 6f 72 20 73 75 63 63 65 | 73 73 2c 20 46 61 6c 73 |or succe|ss, Fals|
|00001d70| 65 20 66 6f 72 20 66 61 | 69 6c 75 72 65 3b 20 6f |e for fa|ilure; o|
|00001d80| 6e 20 66 61 69 6c 75 72 | 65 2c 20 61 6e 0a 20 20 |n failur|e, an. |
|00001d90| 20 20 20 20 20 20 65 72 | 72 6f 72 20 69 73 20 73 | er|ror is s|
|00001da0| 65 6e 74 20 62 61 63 6b | 2e 0a 0a 20 20 20 20 20 |ent back|... |
|00001db0| 20 20 20 73 08 00 00 00 | 48 54 54 50 2f 30 2e 39 | s....|HTTP/0.9|
|00001dc0| 69 01 00 00 00 69 fe ff | ff ff 73 02 00 00 00 0d |i....i..|..s.....|
|00001dd0| 0a 69 ff ff ff ff 73 01 | 00 00 00 0a 69 03 00 00 |.i....s.|....i...|
|00001de0| 00 69 05 00 00 00 73 05 | 00 00 00 48 54 54 50 2f |.i....s.|...HTTP/|
|00001df0| 69 90 01 00 00 73 18 00 | 00 00 42 61 64 20 72 65 |i....s..|..Bad re|
|00001e00| 71 75 65 73 74 20 76 65 | 72 73 69 6f 6e 20 28 25 |quest ve|rsion (%|
|00001e10| 73 29 73 01 00 00 00 2f | 73 01 00 00 00 2e 69 02 |s)s..../|s.....i.|
|00001e20| 00 00 00 69 00 00 00 00 | 73 08 00 00 00 48 54 54 |...i....|s....HTT|
|00001e30| 50 2f 31 2e 31 69 f9 01 | 00 00 73 19 00 00 00 49 |P/1.1i..|..s....I|
|00001e40| 6e 76 61 6c 69 64 20 48 | 54 54 50 20 56 65 72 73 |nvalid H|TTP Vers|
|00001e50| 69 6f 6e 20 28 25 73 29 | 73 03 00 00 00 47 45 54 |ion (%s)|s....GET|
|00001e60| 73 1e 00 00 00 42 61 64 | 20 48 54 54 50 2f 30 2e |s....Bad| HTTP/0.|
|00001e70| 39 20 72 65 71 75 65 73 | 74 20 74 79 70 65 20 28 |9 reques|t type (|
|00001e80| 25 73 29 73 17 00 00 00 | 42 61 64 20 72 65 71 75 |%s)s....|Bad requ|
|00001e90| 65 73 74 20 73 79 6e 74 | 61 78 20 28 25 73 29 73 |est synt|ax (%s)s|
|00001ea0| 00 00 00 00 73 0a 00 00 | 00 43 6f 6e 6e 65 63 74 |....s...|.Connect|
|00001eb0| 69 6f 6e 73 05 00 00 00 | 63 6c 6f 73 65 73 0a 00 |ions....|closes..|
|00001ec0| 00 00 6b 65 65 70 2d 61 | 6c 69 76 65 4e 28 21 00 |..keep-a|liveN(!.|
|00001ed0| 00 00 73 04 00 00 00 4e | 6f 6e 65 73 04 00 00 00 |..s....N|ones....|
|00001ee0| 73 65 6c 66 73 07 00 00 | 00 63 6f 6d 6d 61 6e 64 |selfs...|.command|
|00001ef0| 73 0f 00 00 00 72 65 71 | 75 65 73 74 5f 76 65 72 |s....req|uest_ver|
|00001f00| 73 69 6f 6e 73 07 00 00 | 00 76 65 72 73 69 6f 6e |sions...|.version|
|00001f10| 73 10 00 00 00 63 6c 6f | 73 65 5f 63 6f 6e 6e 65 |s....clo|se_conne|
|00001f20| 63 74 69 6f 6e 73 0f 00 | 00 00 72 61 77 5f 72 65 |ctions..|..raw_re|
|00001f30| 71 75 65 73 74 6c 69 6e | 65 73 0b 00 00 00 72 65 |questlin|es....re|
|00001f40| 71 75 65 73 74 6c 69 6e | 65 73 05 00 00 00 73 70 |questlin|es....sp|
|00001f50| 6c 69 74 73 05 00 00 00 | 77 6f 72 64 73 73 03 00 |lits....|wordss..|
|00001f60| 00 00 6c 65 6e 73 04 00 | 00 00 70 61 74 68 73 0a |..lens..|..paths.|
|00001f70| 00 00 00 73 65 6e 64 5f | 65 72 72 6f 72 73 05 00 |...send_|errors..|
|00001f80| 00 00 46 61 6c 73 65 73 | 13 00 00 00 62 61 73 65 |..Falses|....base|
|00001f90| 5f 76 65 72 73 69 6f 6e | 5f 6e 75 6d 62 65 72 73 |_version|_numbers|
|00001fa0| 0e 00 00 00 76 65 72 73 | 69 6f 6e 5f 6e 75 6d 62 |....vers|ion_numb|
|00001fb0| 65 72 73 0a 00 00 00 56 | 61 6c 75 65 45 72 72 6f |ers....V|alueErro|
|00001fc0| 72 73 03 00 00 00 69 6e | 74 73 0a 00 00 00 49 6e |rs....in|ts....In|
|00001fd0| 64 65 78 45 72 72 6f 72 | 73 10 00 00 00 70 72 6f |dexError|s....pro|
|00001fe0| 74 6f 63 6f 6c 5f 76 65 | 72 73 69 6f 6e 73 05 00 |tocol_ve|rsions..|
|00001ff0| 00 00 62 79 74 65 73 73 | 05 00 00 00 72 66 69 6c |..bytess|....rfil|
|00002000| 65 73 08 00 00 00 72 65 | 61 64 6c 69 6e 65 73 04 |es....re|adlines.|
|00002010| 00 00 00 6c 69 6e 65 73 | 09 00 00 00 63 53 74 72 |...lines|....cStr|
|00002020| 69 6e 67 49 4f 73 08 00 | 00 00 53 74 72 69 6e 67 |ingIOs..|..String|
|00002030| 49 4f 73 05 00 00 00 68 | 66 69 6c 65 73 0c 00 00 |IOs....h|files...|
|00002040| 00 4d 65 73 73 61 67 65 | 43 6c 61 73 73 73 07 00 |.Message|Classs..|
|00002050| 00 00 68 65 61 64 65 72 | 73 73 03 00 00 00 67 65 |..header|ss....ge|
|00002060| 74 73 08 00 00 00 63 6f | 6e 6e 74 79 70 65 73 05 |ts....co|nntypes.|
|00002070| 00 00 00 6c 6f 77 65 72 | 73 04 00 00 00 54 72 75 |...lower|s....Tru|
|00002080| 65 28 0c 00 00 00 73 04 | 00 00 00 73 65 6c 66 73 |e(....s.|...selfs|
|00002090| 05 00 00 00 62 79 74 65 | 73 73 0b 00 00 00 72 65 |....byte|ss....re|
|000020a0| 71 75 65 73 74 6c 69 6e | 65 73 13 00 00 00 62 61 |questlin|es....ba|
|000020b0| 73 65 5f 76 65 72 73 69 | 6f 6e 5f 6e 75 6d 62 65 |se_versi|on_numbe|
|000020c0| 72 73 08 00 00 00 63 6f | 6e 6e 74 79 70 65 73 07 |rs....co|nntypes.|
|000020d0| 00 00 00 76 65 72 73 69 | 6f 6e 73 07 00 00 00 63 |...versi|ons....c|
|000020e0| 6f 6d 6d 61 6e 64 73 05 | 00 00 00 77 6f 72 64 73 |ommands.|...words|
|000020f0| 73 04 00 00 00 70 61 74 | 68 73 04 00 00 00 6c 69 |s....pat|hs....li|
|00002100| 6e 65 73 0e 00 00 00 76 | 65 72 73 69 6f 6e 5f 6e |nes....v|ersion_n|
|00002110| 75 6d 62 65 72 73 05 00 | 00 00 68 66 69 6c 65 28 |umbers..|..hfile(|
|00002120| 00 00 00 00 28 00 00 00 | 00 73 51 00 00 00 2f 4c |....(...|.sQ.../L|
|00002130| 69 62 72 61 72 79 2f 46 | 72 61 6d 65 77 6f 72 6b |ibrary/F|ramework|
|00002140| 73 2f 50 79 74 68 6f 6e | 2e 66 72 61 6d 65 77 6f |s/Python|.framewo|
|00002150| 72 6b 2f 56 65 72 73 69 | 6f 6e 73 2f 32 2e 33 2f |rk/Versi|ons/2.3/|
|00002160| 6c 69 62 2f 70 79 74 68 | 6f 6e 32 2e 33 2f 42 61 |lib/pyth|on2.3/Ba|
|00002170| 73 65 48 54 54 50 53 65 | 72 76 65 72 2e 70 79 73 |seHTTPSe|rver.pys|
|00002180| 0d 00 00 00 70 61 72 73 | 65 5f 72 65 71 75 65 73 |....pars|e_reques|
|00002190| 74 da 00 00 00 73 74 00 | 00 00 00 0a 00 01 09 01 |t....st.|........|
|000021a0| 0d 01 09 01 09 01 11 01 | 0e 01 11 01 0e 01 09 01 |........|........|
|000021b0| 0c 01 13 01 0f 01 11 01 | 15 01 08 01 03 01 16 01 |........|........|
|000021c0| 0f 07 13 01 0a 01 24 01 | 14 01 15 01 09 01 23 01 |......$.|......#.|
|000021d0| 0d 01 13 01 09 01 0b 01 | 0c 01 13 01 0c 01 09 01 |........|........|
|000021e0| 0d 01 09 01 0c 01 0c 01 | 08 01 08 02 15 01 04 01 |........|........|
|000021f0| 21 03 06 01 03 00 07 01 | 0f 01 0a 01 27 01 0a 03 |!.......|....'...|
|00002200| 0f 01 12 02 15 01 13 01 | 0d 01 23 02 0d 01 63 01 |........|..#...c.|
|00002210| 00 00 00 03 00 00 00 04 | 00 00 00 43 00 00 00 73 |........|...C...s|
|00002220| 9c 00 00 00 7c 00 00 69 | 01 00 69 02 00 83 00 00 |....|..i|..i.....|
|00002230| 7c 00 00 5f 03 00 7c 00 | 00 69 03 00 0c 6f 11 00 ||.._..|.|.i...o..|
|00002240| 01 64 01 00 7c 00 00 5f | 04 00 64 02 00 53 6e 01 |.d..|.._|..d..Sn.|
|00002250| 00 01 7c 00 00 69 05 00 | 83 00 00 0c 6f 08 00 01 |..|..i..|....o...|
|00002260| 64 02 00 53 6e 01 00 01 | 64 03 00 7c 00 00 69 06 |d..Sn...|d..|..i.|
|00002270| 00 17 7d 01 00 74 08 00 | 7c 00 00 7c 01 00 83 02 |..}..t..||..|....|
|00002280| 00 0c 6f 20 00 01 7c 00 | 00 69 09 00 64 04 00 64 |..o ..|.|.i..d..d|
|00002290| 05 00 7c 00 00 69 06 00 | 0d 16 83 02 00 01 64 02 |..|..i..|......d.|
|000022a0| 00 53 6e 01 00 01 74 0a | 00 7c 00 00 7c 01 00 83 |.Sn...t.|.|..|...|
|000022b0| 02 00 7d 02 00 7c 02 00 | 83 00 00 01 64 02 00 53 |..}..|..|....d..S|
|000022c0| 28 06 00 00 00 73 dc 00 | 00 00 48 61 6e 64 6c 65 |(....s..|..Handle|
|000022d0| 20 61 20 73 69 6e 67 6c | 65 20 48 54 54 50 20 72 | a singl|e HTTP r|
|000022e0| 65 71 75 65 73 74 2e 0a | 0a 20 20 20 20 20 20 20 |equest..|. |
|000022f0| 20 59 6f 75 20 6e 6f 72 | 6d 61 6c 6c 79 20 64 6f | You nor|mally do|
|00002300| 6e 27 74 20 6e 65 65 64 | 20 74 6f 20 6f 76 65 72 |n't need| to over|
|00002310| 72 69 64 65 20 74 68 69 | 73 20 6d 65 74 68 6f 64 |ride thi|s method|
|00002320| 3b 20 73 65 65 20 74 68 | 65 20 63 6c 61 73 73 0a |; see th|e class.|
|00002330| 20 20 20 20 20 20 20 20 | 5f 5f 64 6f 63 5f 5f 20 | |__doc__ |
|00002340| 73 74 72 69 6e 67 20 66 | 6f 72 20 69 6e 66 6f 72 |string f|or infor|
|00002350| 6d 61 74 69 6f 6e 20 6f | 6e 20 68 6f 77 20 74 6f |mation o|n how to|
|00002360| 20 68 61 6e 64 6c 65 20 | 73 70 65 63 69 66 69 63 | handle |specific|
|00002370| 20 48 54 54 50 0a 20 20 | 20 20 20 20 20 20 63 6f | HTTP. | co|
|00002380| 6d 6d 61 6e 64 73 20 73 | 75 63 68 20 61 73 20 47 |mmands s|uch as G|
|00002390| 45 54 20 61 6e 64 20 50 | 4f 53 54 2e 0a 0a 20 20 |ET and P|OST... |
|000023a0| 20 20 20 20 20 20 69 01 | 00 00 00 4e 73 03 00 00 | i.|...Ns...|
|000023b0| 00 64 6f 5f 69 f5 01 00 | 00 73 17 00 00 00 55 6e |.do_i...|.s....Un|
|000023c0| 73 75 70 70 6f 72 74 65 | 64 20 6d 65 74 68 6f 64 |supporte|d method|
|000023d0| 20 28 25 73 29 28 0c 00 | 00 00 73 04 00 00 00 73 | (%s)(..|..s....s|
|000023e0| 65 6c 66 73 05 00 00 00 | 72 66 69 6c 65 73 08 00 |elfs....|rfiles..|
|000023f0| 00 00 72 65 61 64 6c 69 | 6e 65 73 0f 00 00 00 72 |..readli|nes....r|
|00002400| 61 77 5f 72 65 71 75 65 | 73 74 6c 69 6e 65 73 10 |aw_reque|stlines.|
|00002410| 00 00 00 63 6c 6f 73 65 | 5f 63 6f 6e 6e 65 63 74 |...close|_connect|
|00002420| 69 6f 6e 73 0d 00 00 00 | 70 61 72 73 65 5f 72 65 |ions....|parse_re|
|00002430| 71 75 65 73 74 73 07 00 | 00 00 63 6f 6d 6d 61 6e |quests..|..comman|
|00002440| 64 73 05 00 00 00 6d 6e | 61 6d 65 73 07 00 00 00 |ds....mn|ames....|
|00002450| 68 61 73 61 74 74 72 73 | 0a 00 00 00 73 65 6e 64 |hasattrs|....send|
|00002460| 5f 65 72 72 6f 72 73 07 | 00 00 00 67 65 74 61 74 |_errors.|...getat|
|00002470| 74 72 73 06 00 00 00 6d | 65 74 68 6f 64 28 03 00 |trs....m|ethod(..|
|00002480| 00 00 73 04 00 00 00 73 | 65 6c 66 73 05 00 00 00 |..s....s|elfs....|
|00002490| 6d 6e 61 6d 65 73 06 00 | 00 00 6d 65 74 68 6f 64 |mnames..|..method|
|000024a0| 28 00 00 00 00 28 00 00 | 00 00 73 51 00 00 00 2f |(....(..|..sQ.../|
|000024b0| 4c 69 62 72 61 72 79 2f | 46 72 61 6d 65 77 6f 72 |Library/|Framewor|
|000024c0| 6b 73 2f 50 79 74 68 6f | 6e 2e 66 72 61 6d 65 77 |ks/Pytho|n.framew|
|000024d0| 6f 72 6b 2f 56 65 72 73 | 69 6f 6e 73 2f 32 2e 33 |ork/Vers|ions/2.3|
|000024e0| 2f 6c 69 62 2f 70 79 74 | 68 6f 6e 32 2e 33 2f 42 |/lib/pyt|hon2.3/B|
|000024f0| 61 73 65 48 54 54 50 53 | 65 72 76 65 72 2e 70 79 |aseHTTPS|erver.py|
|00002500| 73 12 00 00 00 68 61 6e | 64 6c 65 5f 6f 6e 65 5f |s....han|dle_one_|
|00002510| 72 65 71 75 65 73 74 2b | 01 00 00 73 1a 00 00 00 |request+|...s....|
|00002520| 00 07 00 01 12 01 0b 01 | 09 01 08 01 0e 01 08 01 |........|........|
|00002530| 0d 01 11 01 18 01 08 01 | 0f 01 63 01 00 00 00 01 |........|..c.....|
|00002540| 00 00 00 02 00 00 00 43 | 00 00 00 73 34 00 00 00 |.......C|...s4...|
|00002550| 64 01 00 7c 00 00 5f 01 | 00 7c 00 00 69 02 00 83 |d..|.._.|.|..i...|
|00002560| 00 00 01 78 1a 00 7c 00 | 00 69 01 00 0c 6f 0e 00 |...x..|.|.i...o..|
|00002570| 01 7c 00 00 69 02 00 83 | 00 00 01 71 16 00 01 57 |.|..i...|...q...W|
|00002580| 64 02 00 53 28 03 00 00 | 00 73 26 00 00 00 48 61 |d..S(...|.s&...Ha|
|00002590| 6e 64 6c 65 20 6d 75 6c | 74 69 70 6c 65 20 72 65 |ndle mul|tiple re|
|000025a0| 71 75 65 73 74 73 20 69 | 66 20 6e 65 63 65 73 73 |quests i|f necess|
|000025b0| 61 72 79 2e 69 01 00 00 | 00 4e 28 03 00 00 00 73 |ary.i...|.N(....s|
|000025c0| 04 00 00 00 73 65 6c 66 | 73 10 00 00 00 63 6c 6f |....self|s....clo|
|000025d0| 73 65 5f 63 6f 6e 6e 65 | 63 74 69 6f 6e 73 12 00 |se_conne|ctions..|
|000025e0| 00 00 68 61 6e 64 6c 65 | 5f 6f 6e 65 5f 72 65 71 |..handle|_one_req|
|000025f0| 75 65 73 74 28 01 00 00 | 00 73 04 00 00 00 73 65 |uest(...|.s....se|
|00002600| 6c 66 28 00 00 00 00 28 | 00 00 00 00 73 51 00 00 |lf(....(|....sQ..|
|00002610| 00 2f 4c 69 62 72 61 72 | 79 2f 46 72 61 6d 65 77 |./Librar|y/Framew|
|00002620| 6f 72 6b 73 2f 50 79 74 | 68 6f 6e 2e 66 72 61 6d |orks/Pyt|hon.fram|
|00002630| 65 77 6f 72 6b 2f 56 65 | 72 73 69 6f 6e 73 2f 32 |ework/Ve|rsions/2|
|00002640| 2e 33 2f 6c 69 62 2f 70 | 79 74 68 6f 6e 32 2e 33 |.3/lib/p|ython2.3|
|00002650| 2f 42 61 73 65 48 54 54 | 50 53 65 72 76 65 72 2e |/BaseHTT|PServer.|
|00002660| 70 79 73 06 00 00 00 68 | 61 6e 64 6c 65 40 01 00 |pys....h|andle@..|
|00002670| 00 73 0c 00 00 00 00 01 | 00 01 09 02 0a 01 03 00 |.s......|........|
|00002680| 0b 01 63 03 00 00 00 07 | 00 00 00 05 00 00 00 43 |..c.....|.......C|
|00002690| 00 00 00 73 19 01 00 00 | 79 17 00 7c 00 00 69 01 |...s....|y..|..i.|
|000026a0| 00 7c 01 00 19 5c 02 00 | 7d 05 00 7d 03 00 57 6e |.|...\..|}..}..Wn|
|000026b0| 25 00 04 74 05 00 6a 0a | 00 6f 19 00 01 01 01 01 |%..t..j.|.o......|
|000026c0| 64 01 00 64 01 00 66 02 | 00 5c 02 00 7d 05 00 7d |d..d..f.|.\..}..}|
|000026d0| 03 00 6e 02 00 01 58 7c | 02 00 74 07 00 6a 08 00 |..n...X||..t..j..|
|000026e0| 6f 0a 00 01 7c 05 00 7d | 02 00 6e 01 00 01 7c 03 |o...|..}|..n...|.|
|000026f0| 00 7d 06 00 7c 00 00 69 | 09 00 64 02 00 7c 01 00 |.}..|..i|..d..|..|
|00002700| 7c 02 00 83 03 00 01 7c | 00 00 69 0a 00 68 00 00 ||......||..i..h..|
|00002710| 04 64 03 00 7c 01 00 03 | 3c 04 64 04 00 7c 02 00 |.d..|...|<.d..|..|
|00002720| 03 3c 04 64 05 00 7c 06 | 00 03 3c 16 7d 04 00 7c |.<.d..|.|..<.}..||
|00002730| 00 00 69 0c 00 7c 01 00 | 7c 02 00 83 02 00 01 7c |..i..|..||......||
|00002740| 00 00 69 0d 00 64 06 00 | 64 07 00 83 02 00 01 7c |..i..d..|d......||
|00002750| 00 00 69 0d 00 64 08 00 | 64 09 00 83 02 00 01 7c |..i..d..|d......||
|00002760| 00 00 69 0e 00 83 00 00 | 01 7c 00 00 69 0f 00 64 |..i.....|.|..i..d|
|00002770| 0a 00 6a 03 00 6f 1d 00 | 01 7c 01 00 64 0b 00 6a |..j..o..|.|..d..j|
|00002780| 05 00 6f 10 00 01 7c 01 | 00 64 0c 00 64 0d 00 66 |..o...|.|.d..d..f|
|00002790| 02 00 6a 07 00 6f 14 00 | 01 7c 00 00 69 10 00 69 |..j..o..|.|..i..i|
|000027a0| 11 00 7c 04 00 83 01 00 | 01 6e 01 00 01 64 0e 00 |..|.....|.n...d..|
|000027b0| 53 28 0f 00 00 00 73 89 | 01 00 00 53 65 6e 64 20 |S(....s.|...Send |
|000027c0| 61 6e 64 20 6c 6f 67 20 | 61 6e 20 65 72 72 6f 72 |and log |an error|
|000027d0| 20 72 65 70 6c 79 2e 0a | 0a 20 20 20 20 20 20 20 | reply..|. |
|000027e0| 20 41 72 67 75 6d 65 6e | 74 73 20 61 72 65 20 74 | Argumen|ts are t|
|000027f0| 68 65 20 65 72 72 6f 72 | 20 63 6f 64 65 2c 20 61 |he error| code, a|
|00002800| 6e 64 20 61 20 64 65 74 | 61 69 6c 65 64 20 6d 65 |nd a det|ailed me|
|00002810| 73 73 61 67 65 2e 0a 20 | 20 20 20 20 20 20 20 54 |ssage.. | T|
|00002820| 68 65 20 64 65 74 61 69 | 6c 65 64 20 6d 65 73 73 |he detai|led mess|
|00002830| 61 67 65 20 64 65 66 61 | 75 6c 74 73 20 74 6f 20 |age defa|ults to |
|00002840| 74 68 65 20 73 68 6f 72 | 74 20 65 6e 74 72 79 20 |the shor|t entry |
|00002850| 6d 61 74 63 68 69 6e 67 | 20 74 68 65 0a 20 20 20 |matching| the. |
|00002860| 20 20 20 20 20 72 65 73 | 70 6f 6e 73 65 20 63 6f | res|ponse co|
|00002870| 64 65 2e 0a 0a 20 20 20 | 20 20 20 20 20 54 68 69 |de... | Thi|
|00002880| 73 20 73 65 6e 64 73 20 | 61 6e 20 65 72 72 6f 72 |s sends |an error|
|00002890| 20 72 65 73 70 6f 6e 73 | 65 20 28 73 6f 20 69 74 | respons|e (so it|
|000028a0| 20 6d 75 73 74 20 62 65 | 20 63 61 6c 6c 65 64 20 | must be| called |
|000028b0| 62 65 66 6f 72 65 20 61 | 6e 79 0a 20 20 20 20 20 |before a|ny. |
|000028c0| 20 20 20 6f 75 74 70 75 | 74 20 68 61 73 20 62 65 | outpu|t has be|
|000028d0| 65 6e 20 67 65 6e 65 72 | 61 74 65 64 29 2c 20 6c |en gener|ated), l|
|000028e0| 6f 67 73 20 74 68 65 20 | 65 72 72 6f 72 2c 20 61 |ogs the |error, a|
|000028f0| 6e 64 20 66 69 6e 61 6c | 6c 79 20 73 65 6e 64 73 |nd final|ly sends|
|00002900| 0a 20 20 20 20 20 20 20 | 20 61 20 70 69 65 63 65 |. | a piece|
|00002910| 20 6f 66 20 48 54 4d 4c | 20 65 78 70 6c 61 69 6e | of HTML| explain|
|00002920| 69 6e 67 20 74 68 65 20 | 65 72 72 6f 72 20 74 6f |ing the |error to|
|00002930| 20 74 68 65 20 75 73 65 | 72 2e 0a 0a 20 20 20 20 | the use|r... |
|00002940| 20 20 20 20 73 03 00 00 | 00 3f 3f 3f 73 13 00 00 | s...|.???s...|
|00002950| 00 63 6f 64 65 20 25 64 | 2c 20 6d 65 73 73 61 67 |.code %d|, messag|
|00002960| 65 20 25 73 73 04 00 00 | 00 63 6f 64 65 73 07 00 |e %ss...|.codes..|
|00002970| 00 00 6d 65 73 73 61 67 | 65 73 07 00 00 00 65 78 |..messag|es....ex|
|00002980| 70 6c 61 69 6e 73 0c 00 | 00 00 43 6f 6e 74 65 6e |plains..|..Conten|
|00002990| 74 2d 54 79 70 65 73 09 | 00 00 00 74 65 78 74 2f |t-Types.|...text/|
|000029a0| 68 74 6d 6c 73 0a 00 00 | 00 43 6f 6e 6e 65 63 74 |htmls...|.Connect|
|000029b0| 69 6f 6e 73 05 00 00 00 | 63 6c 6f 73 65 73 04 00 |ions....|closes..|
|000029c0| 00 00 48 45 41 44 69 c8 | 00 00 00 69 cc 00 00 00 |..HEADi.|...i....|
|000029d0| 69 30 01 00 00 4e 28 12 | 00 00 00 73 04 00 00 00 |i0...N(.|...s....|
|000029e0| 73 65 6c 66 73 09 00 00 | 00 72 65 73 70 6f 6e 73 |selfs...|.respons|
|000029f0| 65 73 73 04 00 00 00 63 | 6f 64 65 73 05 00 00 00 |ess....c|odes....|
|00002a00| 73 68 6f 72 74 73 04 00 | 00 00 6c 6f 6e 67 73 08 |shorts..|..longs.|
|00002a10| 00 00 00 4b 65 79 45 72 | 72 6f 72 73 07 00 00 00 |...KeyEr|rors....|
|00002a20| 6d 65 73 73 61 67 65 73 | 04 00 00 00 4e 6f 6e 65 |messages|....None|
|00002a30| 73 07 00 00 00 65 78 70 | 6c 61 69 6e 73 09 00 00 |s....exp|lains...|
|00002a40| 00 6c 6f 67 5f 65 72 72 | 6f 72 73 14 00 00 00 65 |.log_err|ors....e|
|00002a50| 72 72 6f 72 5f 6d 65 73 | 73 61 67 65 5f 66 6f 72 |rror_mes|sage_for|
|00002a60| 6d 61 74 73 07 00 00 00 | 63 6f 6e 74 65 6e 74 73 |mats....|contents|
|00002a70| 0d 00 00 00 73 65 6e 64 | 5f 72 65 73 70 6f 6e 73 |....send|_respons|
|00002a80| 65 73 0b 00 00 00 73 65 | 6e 64 5f 68 65 61 64 65 |es....se|nd_heade|
|00002a90| 72 73 0b 00 00 00 65 6e | 64 5f 68 65 61 64 65 72 |rs....en|d_header|
|00002aa0| 73 73 07 00 00 00 63 6f | 6d 6d 61 6e 64 73 05 00 |ss....co|mmands..|
|00002ab0| 00 00 77 66 69 6c 65 73 | 05 00 00 00 77 72 69 74 |..wfiles|....writ|
|00002ac0| 65 28 07 00 00 00 73 04 | 00 00 00 73 65 6c 66 73 |e(....s.|...selfs|
|00002ad0| 04 00 00 00 63 6f 64 65 | 73 07 00 00 00 6d 65 73 |....code|s....mes|
|00002ae0| 73 61 67 65 73 04 00 00 | 00 6c 6f 6e 67 73 07 00 |sages...|.longs..|
|00002af0| 00 00 63 6f 6e 74 65 6e | 74 73 05 00 00 00 73 68 |..conten|ts....sh|
|00002b00| 6f 72 74 73 07 00 00 00 | 65 78 70 6c 61 69 6e 28 |orts....|explain(|
|00002b10| 00 00 00 00 28 00 00 00 | 00 73 51 00 00 00 2f 4c |....(...|.sQ.../L|
|00002b20| 69 62 72 61 72 79 2f 46 | 72 61 6d 65 77 6f 72 6b |ibrary/F|ramework|
|00002b30| 73 2f 50 79 74 68 6f 6e | 2e 66 72 61 6d 65 77 6f |s/Python|.framewo|
|00002b40| 72 6b 2f 56 65 72 73 69 | 6f 6e 73 2f 32 2e 33 2f |rk/Versi|ons/2.3/|
|00002b50| 6c 69 62 2f 70 79 74 68 | 6f 6e 32 2e 33 2f 42 61 |lib/pyth|on2.3/Ba|
|00002b60| 73 65 48 54 54 50 53 65 | 72 76 65 72 2e 70 79 73 |seHTTPSe|rver.pys|
|00002b70| 0a 00 00 00 73 65 6e 64 | 5f 65 72 72 6f 72 48 01 |....send|_errorH.|
|00002b80| 00 00 73 20 00 00 00 00 | 0b 00 02 03 01 17 01 0e |..s ....|........|
|00002b90| 01 17 01 0d 01 0a 01 06 | 01 13 01 28 02 10 01 10 |........|...(....|
|00002ba0| 01 10 01 0a 01 30 01 63 | 03 00 00 00 03 00 00 00 |.....0.c|........|
|00002bb0| 05 00 00 00 43 00 00 00 | 73 ad 00 00 00 7c 00 00 |....C...|s....|..|
|00002bc0| 69 01 00 7c 01 00 83 01 | 00 01 7c 02 00 74 04 00 |i..|....|..|..t..|
|00002bd0| 6a 08 00 6f 2f 00 01 7c | 01 00 7c 00 00 69 05 00 |j..o/..||..|..i..|
|00002be0| 6a 06 00 6f 15 00 01 7c | 00 00 69 05 00 7c 01 00 |j..o...||..i..|..|
|00002bf0| 19 64 01 00 19 7d 02 00 | 71 49 00 01 64 02 00 7d |.d...}..|qI..d..}|
|00002c00| 02 00 6e 01 00 01 7c 00 | 00 69 06 00 64 03 00 6a |..n...|.|.i..d..j|
|00002c10| 03 00 6f 24 00 01 7c 00 | 00 69 07 00 69 08 00 64 |..o$..|.|.i..i..d|
|00002c20| 04 00 7c 00 00 69 09 00 | 7c 01 00 7c 02 00 66 03 |..|..i..||..|..f.|
|00002c30| 00 16 83 01 00 01 6e 01 | 00 01 7c 00 00 69 0a 00 |......n.|..|..i..|
|00002c40| 64 05 00 7c 00 00 69 0b | 00 83 00 00 83 02 00 01 |d..|..i.|........|
|00002c50| 7c 00 00 69 0a 00 64 06 | 00 7c 00 00 69 0c 00 83 ||..i..d.|.|..i...|
|00002c60| 00 00 83 02 00 01 64 07 | 00 53 28 08 00 00 00 73 |......d.|.S(....s|
|00002c70| a4 00 00 00 53 65 6e 64 | 20 74 68 65 20 72 65 73 |....Send| the res|
|00002c80| 70 6f 6e 73 65 20 68 65 | 61 64 65 72 20 61 6e 64 |ponse he|ader and|
|00002c90| 20 6c 6f 67 20 74 68 65 | 20 72 65 73 70 6f 6e 73 | log the| respons|
|00002ca0| 65 20 63 6f 64 65 2e 0a | 0a 20 20 20 20 20 20 20 |e code..|. |
|00002cb0| 20 41 6c 73 6f 20 73 65 | 6e 64 20 74 77 6f 20 73 | Also se|nd two s|
|00002cc0| 74 61 6e 64 61 72 64 20 | 68 65 61 64 65 72 73 20 |tandard |headers |
|00002cd0| 77 69 74 68 20 74 68 65 | 20 73 65 72 76 65 72 20 |with the| server |
|00002ce0| 73 6f 66 74 77 61 72 65 | 0a 20 20 20 20 20 20 20 |software|. |
|00002cf0| 20 76 65 72 73 69 6f 6e | 20 61 6e 64 20 74 68 65 | version| and the|
|00002d00| 20 63 75 72 72 65 6e 74 | 20 64 61 74 65 2e 0a 0a | current| date...|
|00002d10| 20 20 20 20 20 20 20 20 | 69 00 00 00 00 73 00 00 | |i....s..|
|00002d20| 00 00 73 08 00 00 00 48 | 54 54 50 2f 30 2e 39 73 |..s....H|TTP/0.9s|
|00002d30| 0a 00 00 00 25 73 20 25 | 64 20 25 73 0d 0a 73 06 |....%s %|d %s..s.|
|00002d40| 00 00 00 53 65 72 76 65 | 72 73 04 00 00 00 44 61 |...Serve|rs....Da|
|00002d50| 74 65 4e 28 0d 00 00 00 | 73 04 00 00 00 73 65 6c |teN(....|s....sel|
|00002d60| 66 73 0b 00 00 00 6c 6f | 67 5f 72 65 71 75 65 73 |fs....lo|g_reques|
|00002d70| 74 73 04 00 00 00 63 6f | 64 65 73 07 00 00 00 6d |ts....co|des....m|
|00002d80| 65 73 73 61 67 65 73 04 | 00 00 00 4e 6f 6e 65 73 |essages.|...Nones|
|00002d90| 09 00 00 00 72 65 73 70 | 6f 6e 73 65 73 73 0f 00 |....resp|onsess..|
|00002da0| 00 00 72 65 71 75 65 73 | 74 5f 76 65 72 73 69 6f |..reques|t_versio|
|00002db0| 6e 73 05 00 00 00 77 66 | 69 6c 65 73 05 00 00 00 |ns....wf|iles....|
|00002dc0| 77 72 69 74 65 73 10 00 | 00 00 70 72 6f 74 6f 63 |writes..|..protoc|
|00002dd0| 6f 6c 5f 76 65 72 73 69 | 6f 6e 73 0b 00 00 00 73 |ol_versi|ons....s|
|00002de0| 65 6e 64 5f 68 65 61 64 | 65 72 73 0e 00 00 00 76 |end_head|ers....v|
|00002df0| 65 72 73 69 6f 6e 5f 73 | 74 72 69 6e 67 73 10 00 |ersion_s|trings..|
|00002e00| 00 00 64 61 74 65 5f 74 | 69 6d 65 5f 73 74 72 69 |..date_t|ime_stri|
|00002e10| 6e 67 28 03 00 00 00 73 | 04 00 00 00 73 65 6c 66 |ng(....s|....self|
|00002e20| 73 04 00 00 00 63 6f 64 | 65 73 07 00 00 00 6d 65 |s....cod|es....me|
|00002e30| 73 73 61 67 65 28 00 00 | 00 00 28 00 00 00 00 73 |ssage(..|..(....s|
|00002e40| 51 00 00 00 2f 4c 69 62 | 72 61 72 79 2f 46 72 61 |Q.../Lib|rary/Fra|
|00002e50| 6d 65 77 6f 72 6b 73 2f | 50 79 74 68 6f 6e 2e 66 |meworks/|Python.f|
|00002e60| 72 61 6d 65 77 6f 72 6b | 2f 56 65 72 73 69 6f 6e |ramework|/Version|
|00002e70| 73 2f 32 2e 33 2f 6c 69 | 62 2f 70 79 74 68 6f 6e |s/2.3/li|b/python|
|00002e80| 32 2e 33 2f 42 61 73 65 | 48 54 54 50 53 65 72 76 |2.3/Base|HTTPServ|
|00002e90| 65 72 2e 70 79 73 0d 00 | 00 00 73 65 6e 64 5f 72 |er.pys..|..send_r|
|00002ea0| 65 73 70 6f 6e 73 65 68 | 01 00 00 73 14 00 00 00 |esponseh|...s....|
|00002eb0| 00 06 00 01 0d 01 0d 01 | 10 01 15 02 0a 01 10 01 |........|........|
|00002ec0| 24 03 16 01 63 03 00 00 | 00 03 00 00 00 04 00 00 |$...c...|........|
|00002ed0| 00 43 00 00 00 73 89 00 | 00 00 7c 00 00 69 01 00 |.C...s..|..|..i..|
|00002ee0| 64 01 00 6a 03 00 6f 1e | 00 01 7c 00 00 69 02 00 |d..j..o.|..|..i..|
|00002ef0| 69 03 00 64 02 00 7c 01 | 00 7c 02 00 66 02 00 16 |i..d..|.|.|..f...|
|00002f00| 83 01 00 01 6e 01 00 01 | 7c 01 00 69 06 00 83 00 |....n...||..i....|
|00002f10| 00 64 03 00 6a 02 00 6f | 44 00 01 7c 02 00 69 06 |.d..j..o|D..|..i.|
|00002f20| 00 83 00 00 64 04 00 6a | 02 00 6f 0d 00 01 64 05 |....d..j|..o...d.|
|00002f30| 00 7c 00 00 5f 07 00 71 | 85 00 01 7c 02 00 69 06 |.|.._..q|...|..i.|
|00002f40| 00 83 00 00 64 06 00 6a | 02 00 6f 0d 00 01 64 07 |....d..j|..o...d.|
|00002f50| 00 7c 00 00 5f 07 00 71 | 85 00 01 6e 01 00 01 64 |.|.._..q|...n...d|
|00002f60| 08 00 53 28 09 00 00 00 | 73 13 00 00 00 53 65 6e |..S(....|s....Sen|
|00002f70| 64 20 61 20 4d 49 4d 45 | 20 68 65 61 64 65 72 2e |d a MIME| header.|
|00002f80| 73 08 00 00 00 48 54 54 | 50 2f 30 2e 39 73 08 00 |s....HTT|P/0.9s..|
|00002f90| 00 00 25 73 3a 20 25 73 | 0d 0a 73 0a 00 00 00 63 |..%s: %s|..s....c|
|00002fa0| 6f 6e 6e 65 63 74 69 6f | 6e 73 05 00 00 00 63 6c |onnectio|ns....cl|
|00002fb0| 6f 73 65 69 01 00 00 00 | 73 0a 00 00 00 6b 65 65 |osei....|s....kee|
|00002fc0| 70 2d 61 6c 69 76 65 69 | 00 00 00 00 4e 28 08 00 |p-alivei|....N(..|
|00002fd0| 00 00 73 04 00 00 00 73 | 65 6c 66 73 0f 00 00 00 |..s....s|elfs....|
|00002fe0| 72 65 71 75 65 73 74 5f | 76 65 72 73 69 6f 6e 73 |request_|versions|
|00002ff0| 05 00 00 00 77 66 69 6c | 65 73 05 00 00 00 77 72 |....wfil|es....wr|
|00003000| 69 74 65 73 07 00 00 00 | 6b 65 79 77 6f 72 64 73 |ites....|keywords|
|00003010| 05 00 00 00 76 61 6c 75 | 65 73 05 00 00 00 6c 6f |....valu|es....lo|
|00003020| 77 65 72 73 10 00 00 00 | 63 6c 6f 73 65 5f 63 6f |wers....|close_co|
|00003030| 6e 6e 65 63 74 69 6f 6e | 28 03 00 00 00 73 04 00 |nnection|(....s..|
|00003040| 00 00 73 65 6c 66 73 07 | 00 00 00 6b 65 79 77 6f |..selfs.|...keywo|
|00003050| 72 64 73 05 00 00 00 76 | 61 6c 75 65 28 00 00 00 |rds....v|alue(...|
|00003060| 00 28 00 00 00 00 73 51 | 00 00 00 2f 4c 69 62 72 |.(....sQ|.../Libr|
|00003070| 61 72 79 2f 46 72 61 6d | 65 77 6f 72 6b 73 2f 50 |ary/Fram|eworks/P|
|00003080| 79 74 68 6f 6e 2e 66 72 | 61 6d 65 77 6f 72 6b 2f |ython.fr|amework/|
|00003090| 56 65 72 73 69 6f 6e 73 | 2f 32 2e 33 2f 6c 69 62 |Versions|/2.3/lib|
|000030a0| 2f 70 79 74 68 6f 6e 32 | 2e 33 2f 42 61 73 65 48 |/python2|.3/BaseH|
|000030b0| 54 54 50 53 65 72 76 65 | 72 2e 70 79 73 0b 00 00 |TTPServe|r.pys...|
|000030c0| 00 73 65 6e 64 5f 68 65 | 61 64 65 72 7c 01 00 00 |.send_he|ader|...|
|000030d0| 73 10 00 00 00 00 01 00 | 01 10 01 1e 02 13 01 13 |s.......|........|
|000030e0| 01 0d 01 13 01 63 01 00 | 00 00 01 00 00 00 02 00 |.....c..|........|
|000030f0| 00 00 43 00 00 00 73 28 | 00 00 00 7c 00 00 69 01 |..C...s(|...|..i.|
|00003100| 00 64 01 00 6a 03 00 6f | 14 00 01 7c 00 00 69 02 |.d..j..o|...|..i.|
|00003110| 00 69 03 00 64 02 00 83 | 01 00 01 6e 01 00 01 64 |.i..d...|...n...d|
|00003120| 03 00 53 28 04 00 00 00 | 73 2c 00 00 00 53 65 6e |..S(....|s,...Sen|
|00003130| 64 20 74 68 65 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |d the bl|ank line|
|00003140| 20 65 6e 64 69 6e 67 20 | 74 68 65 20 4d 49 4d 45 | ending |the MIME|
|00003150| 20 68 65 61 64 65 72 73 | 2e 73 08 00 00 00 48 54 | headers|.s....HT|
|00003160| 54 50 2f 30 2e 39 73 02 | 00 00 00 0d 0a 4e 28 04 |TP/0.9s.|.....N(.|
|00003170| 00 00 00 73 04 00 00 00 | 73 65 6c 66 73 0f 00 00 |...s....|selfs...|
|00003180| 00 72 65 71 75 65 73 74 | 5f 76 65 72 73 69 6f 6e |.request|_version|
|00003190| 73 05 00 00 00 77 66 69 | 6c 65 73 05 00 00 00 77 |s....wfi|les....w|
|000031a0| 72 69 74 65 28 01 00 00 | 00 73 04 00 00 00 73 65 |rite(...|.s....se|
|000031b0| 6c 66 28 00 00 00 00 28 | 00 00 00 00 73 51 00 00 |lf(....(|....sQ..|
|000031c0| 00 2f 4c 69 62 72 61 72 | 79 2f 46 72 61 6d 65 77 |./Librar|y/Framew|
|000031d0| 6f 72 6b 73 2f 50 79 74 | 68 6f 6e 2e 66 72 61 6d |orks/Pyt|hon.fram|
|000031e0| 65 77 6f 72 6b 2f 56 65 | 72 73 69 6f 6e 73 2f 32 |ework/Ve|rsions/2|
|000031f0| 2e 33 2f 6c 69 62 2f 70 | 79 74 68 6f 6e 32 2e 33 |.3/lib/p|ython2.3|
|00003200| 2f 42 61 73 65 48 54 54 | 50 53 65 72 76 65 72 2e |/BaseHTT|PServer.|
|00003210| 70 79 73 0b 00 00 00 65 | 6e 64 5f 68 65 61 64 65 |pys....e|nd_heade|
|00003220| 72 73 87 01 00 00 73 06 | 00 00 00 00 01 00 01 10 |rs....s.|........|
|00003230| 01 73 01 00 00 00 2d 63 | 03 00 00 00 03 00 00 00 |.s....-c|........|
|00003240| 06 00 00 00 43 00 00 00 | 73 29 00 00 00 7c 00 00 |....C...|s)...|..|
|00003250| 69 01 00 64 01 00 7c 00 | 00 69 02 00 74 03 00 7c |i..d..|.|.i..t..||
|00003260| 01 00 83 01 00 74 03 00 | 7c 02 00 83 01 00 83 04 |.....t..||.......|
|00003270| 00 01 64 02 00 53 28 03 | 00 00 00 73 4d 00 00 00 |..d..S(.|...sM...|
|00003280| 4c 6f 67 20 61 6e 20 61 | 63 63 65 70 74 65 64 20 |Log an a|ccepted |
|00003290| 72 65 71 75 65 73 74 2e | 0a 0a 20 20 20 20 20 20 |request.|.. |
|000032a0| 20 20 54 68 69 73 20 69 | 73 20 63 61 6c 6c 65 64 | This i|s called|
|000032b0| 20 62 79 20 73 65 6e 64 | 5f 72 65 70 6f 6e 73 65 | by send|_reponse|
|000032c0| 28 29 2e 0a 0a 20 20 20 | 20 20 20 20 20 73 0a 00 |()... | s..|
|000032d0| 00 00 22 25 73 22 20 25 | 73 20 25 73 4e 28 06 00 |.."%s" %|s %sN(..|
|000032e0| 00 00 73 04 00 00 00 73 | 65 6c 66 73 0b 00 00 00 |..s....s|elfs....|
|000032f0| 6c 6f 67 5f 6d 65 73 73 | 61 67 65 73 0b 00 00 00 |log_mess|ages....|
|00003300| 72 65 71 75 65 73 74 6c | 69 6e 65 73 03 00 00 00 |requestl|ines....|
|00003310| 73 74 72 73 04 00 00 00 | 63 6f 64 65 73 04 00 00 |strs....|codes...|
|00003320| 00 73 69 7a 65 28 03 00 | 00 00 73 04 00 00 00 73 |.size(..|..s....s|
|00003330| 65 6c 66 73 04 00 00 00 | 63 6f 64 65 73 04 00 00 |elfs....|codes...|
|00003340| 00 73 69 7a 65 28 00 00 | 00 00 28 00 00 00 00 73 |.size(..|..(....s|
|00003350| 51 00 00 00 2f 4c 69 62 | 72 61 72 79 2f 46 72 61 |Q.../Lib|rary/Fra|
|00003360| 6d 65 77 6f 72 6b 73 2f | 50 79 74 68 6f 6e 2e 66 |meworks/|Python.f|
|00003370| 72 61 6d 65 77 6f 72 6b | 2f 56 65 72 73 69 6f 6e |ramework|/Version|
|00003380| 73 2f 32 2e 33 2f 6c 69 | 62 2f 70 79 74 68 6f 6e |s/2.3/li|b/python|
|00003390| 32 2e 33 2f 42 61 73 65 | 48 54 54 50 53 65 72 76 |2.3/Base|HTTPServ|
|000033a0| 65 72 2e 70 79 73 0b 00 | 00 00 6c 6f 67 5f 72 65 |er.pys..|..log_re|
|000033b0| 71 75 65 73 74 8c 01 00 | 00 73 06 00 00 00 00 05 |quest...|.s......|
|000033c0| 00 02 09 01 63 01 00 00 | 00 02 00 00 00 02 00 00 |....c...|........|
|000033d0| 00 47 00 00 00 73 11 00 | 00 00 7c 00 00 69 01 00 |.G...s..|..|..i..|
|000033e0| 7c 01 00 8c 00 00 01 64 | 01 00 53 28 02 00 00 00 ||......d|..S(....|
|000033f0| 73 ff 00 00 00 4c 6f 67 | 20 61 6e 20 65 72 72 6f |s....Log| an erro|
|00003400| 72 2e 0a 0a 20 20 20 20 | 20 20 20 20 54 68 69 73 |r... | This|
|00003410| 20 69 73 20 63 61 6c 6c | 65 64 20 77 68 65 6e 20 | is call|ed when |
|00003420| 61 20 72 65 71 75 65 73 | 74 20 63 61 6e 6e 6f 74 |a reques|t cannot|
|00003430| 20 62 65 20 66 75 6c 66 | 69 6c 6c 65 64 2e 20 20 | be fulf|illed. |
|00003440| 42 79 0a 20 20 20 20 20 | 20 20 20 64 65 66 61 75 |By. | defau|
|00003450| 6c 74 20 69 74 20 70 61 | 73 73 65 73 20 74 68 65 |lt it pa|sses the|
|00003460| 20 6d 65 73 73 61 67 65 | 20 6f 6e 20 74 6f 20 6c | message| on to l|
|00003470| 6f 67 5f 6d 65 73 73 61 | 67 65 28 29 2e 0a 0a 20 |og_messa|ge()... |
|00003480| 20 20 20 20 20 20 20 41 | 72 67 75 6d 65 6e 74 73 | A|rguments|
|00003490| 20 61 72 65 20 74 68 65 | 20 73 61 6d 65 20 61 73 | are the| same as|
|000034a0| 20 66 6f 72 20 6c 6f 67 | 5f 6d 65 73 73 61 67 65 | for log|_message|
|000034b0| 28 29 2e 0a 0a 20 20 20 | 20 20 20 20 20 58 58 58 |()... | XXX|
|000034c0| 20 54 68 69 73 20 73 68 | 6f 75 6c 64 20 67 6f 20 | This sh|ould go |
|000034d0| 74 6f 20 74 68 65 20 73 | 65 70 61 72 61 74 65 20 |to the s|eparate |
|000034e0| 65 72 72 6f 72 20 6c 6f | 67 2e 0a 0a 20 20 20 20 |error lo|g... |
|000034f0| 20 20 20 20 4e 28 03 00 | 00 00 73 04 00 00 00 73 | N(..|..s....s|
|00003500| 65 6c 66 73 0b 00 00 00 | 6c 6f 67 5f 6d 65 73 73 |elfs....|log_mess|
|00003510| 61 67 65 73 04 00 00 00 | 61 72 67 73 28 02 00 00 |ages....|args(...|
|00003520| 00 73 04 00 00 00 73 65 | 6c 66 73 04 00 00 00 61 |.s....se|lfs....a|
|00003530| 72 67 73 28 00 00 00 00 | 28 00 00 00 00 73 51 00 |rgs(....|(....sQ.|
|00003540| 00 00 2f 4c 69 62 72 61 | 72 79 2f 46 72 61 6d 65 |../Libra|ry/Frame|
|00003550| 77 6f 72 6b 73 2f 50 79 | 74 68 6f 6e 2e 66 72 61 |works/Py|thon.fra|
|00003560| 6d 65 77 6f 72 6b 2f 56 | 65 72 73 69 6f 6e 73 2f |mework/V|ersions/|
|00003570| 32 2e 33 2f 6c 69 62 2f | 70 79 74 68 6f 6e 32 2e |2.3/lib/|python2.|
|00003580| 33 2f 42 61 73 65 48 54 | 54 50 53 65 72 76 65 72 |3/BaseHT|TPServer|
|00003590| 2e 70 79 73 09 00 00 00 | 6c 6f 67 5f 65 72 72 6f |.pys....|log_erro|
|000035a0| 72 96 01 00 00 73 04 00 | 00 00 00 0a 00 02 63 02 |r....s..|......c.|
|000035b0| 00 00 00 03 00 00 00 06 | 00 00 00 47 00 00 00 73 |........|...G...s|
|000035c0| 31 00 00 00 74 00 00 69 | 01 00 69 02 00 64 01 00 |1...t..i|..i..d..|
|000035d0| 7c 00 00 69 04 00 83 00 | 00 7c 00 00 69 05 00 83 ||..i....|.|..i...|
|000035e0| 00 00 7c 01 00 7c 02 00 | 16 66 03 00 16 83 01 00 |..|..|..|.f......|
|000035f0| 01 64 02 00 53 28 03 00 | 00 00 73 ed 01 00 00 4c |.d..S(..|..s....L|
|00003600| 6f 67 20 61 6e 20 61 72 | 62 69 74 72 61 72 79 20 |og an ar|bitrary |
|00003610| 6d 65 73 73 61 67 65 2e | 0a 0a 20 20 20 20 20 20 |message.|.. |
|00003620| 20 20 54 68 69 73 20 69 | 73 20 75 73 65 64 20 62 | This i|s used b|
|00003630| 79 20 61 6c 6c 20 6f 74 | 68 65 72 20 6c 6f 67 67 |y all ot|her logg|
|00003640| 69 6e 67 20 66 75 6e 63 | 74 69 6f 6e 73 2e 20 20 |ing func|tions. |
|00003650| 4f 76 65 72 72 69 64 65 | 0a 20 20 20 20 20 20 20 |Override|. |
|00003660| 20 69 74 20 69 66 20 79 | 6f 75 20 68 61 76 65 20 | it if y|ou have |
|00003670| 73 70 65 63 69 66 69 63 | 20 6c 6f 67 67 69 6e 67 |specific| logging|
|00003680| 20 77 69 73 68 65 73 2e | 0a 0a 20 20 20 20 20 20 | wishes.|.. |
|00003690| 20 20 54 68 65 20 66 69 | 72 73 74 20 61 72 67 75 | The fi|rst argu|
|000036a0| 6d 65 6e 74 2c 20 46 4f | 52 4d 41 54 2c 20 69 73 |ment, FO|RMAT, is|
|000036b0| 20 61 20 66 6f 72 6d 61 | 74 20 73 74 72 69 6e 67 | a forma|t string|
|000036c0| 20 66 6f 72 20 74 68 65 | 0a 20 20 20 20 20 20 20 | for the|. |
|000036d0| 20 6d 65 73 73 61 67 65 | 20 74 6f 20 62 65 20 6c | message| to be l|
|000036e0| 6f 67 67 65 64 2e 20 20 | 49 66 20 74 68 65 20 66 |ogged. |If the f|
|000036f0| 6f 72 6d 61 74 20 73 74 | 72 69 6e 67 20 63 6f 6e |ormat st|ring con|
|00003700| 74 61 69 6e 73 0a 20 20 | 20 20 20 20 20 20 61 6e |tains. | an|
|00003710| 79 20 25 20 65 73 63 61 | 70 65 73 20 72 65 71 75 |y % esca|pes requ|
|00003720| 69 72 69 6e 67 20 70 61 | 72 61 6d 65 74 65 72 73 |iring pa|rameters|
|00003730| 2c 20 74 68 65 79 20 73 | 68 6f 75 6c 64 20 62 65 |, they s|hould be|
|00003740| 0a 20 20 20 20 20 20 20 | 20 73 70 65 63 69 66 69 |. | specifi|
|00003750| 65 64 20 61 73 20 73 75 | 62 73 65 71 75 65 6e 74 |ed as su|bsequent|
|00003760| 20 61 72 67 75 6d 65 6e | 74 73 20 28 69 74 27 73 | argumen|ts (it's|
|00003770| 20 6a 75 73 74 20 6c 69 | 6b 65 0a 20 20 20 20 20 | just li|ke. |
|00003780| 20 20 20 70 72 69 6e 74 | 66 21 29 2e 0a 0a 20 20 | print|f!)... |
|00003790| 20 20 20 20 20 20 54 68 | 65 20 63 6c 69 65 6e 74 | Th|e client|
|000037a0| 20 68 6f 73 74 20 61 6e | 64 20 63 75 72 72 65 6e | host an|d curren|
|000037b0| 74 20 64 61 74 65 2f 74 | 69 6d 65 20 61 72 65 20 |t date/t|ime are |
|000037c0| 70 72 65 66 69 78 65 64 | 20 74 6f 0a 20 20 20 20 |prefixed| to. |
|000037d0| 20 20 20 20 65 76 65 72 | 79 20 6d 65 73 73 61 67 | ever|y messag|
|000037e0| 65 2e 0a 0a 20 20 20 20 | 20 20 20 20 73 0f 00 00 |e... | s...|
|000037f0| 00 25 73 20 2d 20 2d 20 | 5b 25 73 5d 20 25 73 0a |.%s - - |[%s] %s.|
|00003800| 4e 28 08 00 00 00 73 03 | 00 00 00 73 79 73 73 06 |N(....s.|...syss.|
|00003810| 00 00 00 73 74 64 65 72 | 72 73 05 00 00 00 77 72 |...stder|rs....wr|
|00003820| 69 74 65 73 04 00 00 00 | 73 65 6c 66 73 0e 00 00 |ites....|selfs...|
|00003830| 00 61 64 64 72 65 73 73 | 5f 73 74 72 69 6e 67 73 |.address|_strings|
|00003840| 14 00 00 00 6c 6f 67 5f | 64 61 74 65 5f 74 69 6d |....log_|date_tim|
|00003850| 65 5f 73 74 72 69 6e 67 | 73 06 00 00 00 66 6f 72 |e_string|s....for|
|00003860| 6d 61 74 73 04 00 00 00 | 61 72 67 73 28 03 00 00 |mats....|args(...|
|00003870| 00 73 04 00 00 00 73 65 | 6c 66 73 06 00 00 00 66 |.s....se|lfs....f|
|00003880| 6f 72 6d 61 74 73 04 00 | 00 00 61 72 67 73 28 00 |ormats..|..args(.|
|00003890| 00 00 00 28 00 00 00 00 | 73 51 00 00 00 2f 4c 69 |...(....|sQ.../Li|
|000038a0| 62 72 61 72 79 2f 46 72 | 61 6d 65 77 6f 72 6b 73 |brary/Fr|ameworks|
|000038b0| 2f 50 79 74 68 6f 6e 2e | 66 72 61 6d 65 77 6f 72 |/Python.|framewor|
|000038c0| 6b 2f 56 65 72 73 69 6f | 6e 73 2f 32 2e 33 2f 6c |k/Versio|ns/2.3/l|
|000038d0| 69 62 2f 70 79 74 68 6f | 6e 32 2e 33 2f 42 61 73 |ib/pytho|n2.3/Bas|
|000038e0| 65 48 54 54 50 53 65 72 | 76 65 72 2e 70 79 73 0b |eHTTPSer|ver.pys.|
|000038f0| 00 00 00 6c 6f 67 5f 6d | 65 73 73 61 67 65 a4 01 |...log_m|essage..|
|00003900| 00 00 73 04 00 00 00 00 | 0f 00 02 63 01 00 00 00 |..s.....|...c....|
|00003910| 01 00 00 00 02 00 00 00 | 43 00 00 00 73 16 00 00 |........|C...s...|
|00003920| 00 7c 00 00 69 01 00 64 | 01 00 17 7c 00 00 69 02 |.|..i..d|...|..i.|
|00003930| 00 17 53 64 02 00 53 28 | 03 00 00 00 73 2a 00 00 |..Sd..S(|....s*..|
|00003940| 00 52 65 74 75 72 6e 20 | 74 68 65 20 73 65 72 76 |.Return |the serv|
|00003950| 65 72 20 73 6f 66 74 77 | 61 72 65 20 76 65 72 73 |er softw|are vers|
|00003960| 69 6f 6e 20 73 74 72 69 | 6e 67 2e 73 01 00 00 00 |ion stri|ng.s....|
|00003970| 20 4e 28 03 00 00 00 73 | 04 00 00 00 73 65 6c 66 | N(....s|....self|
|00003980| 73 0e 00 00 00 73 65 72 | 76 65 72 5f 76 65 72 73 |s....ser|ver_vers|
|00003990| 69 6f 6e 73 0b 00 00 00 | 73 79 73 5f 76 65 72 73 |ions....|sys_vers|
|000039a0| 69 6f 6e 28 01 00 00 00 | 73 04 00 00 00 73 65 6c |ion(....|s....sel|
|000039b0| 66 28 00 00 00 00 28 00 | 00 00 00 73 51 00 00 00 |f(....(.|...sQ...|
|000039c0| 2f 4c 69 62 72 61 72 79 | 2f 46 72 61 6d 65 77 6f |/Library|/Framewo|
|000039d0| 72 6b 73 2f 50 79 74 68 | 6f 6e 2e 66 72 61 6d 65 |rks/Pyth|on.frame|
|000039e0| 77 6f 72 6b 2f 56 65 72 | 73 69 6f 6e 73 2f 32 2e |work/Ver|sions/2.|
|000039f0| 33 2f 6c 69 62 2f 70 79 | 74 68 6f 6e 32 2e 33 2f |3/lib/py|thon2.3/|
|00003a00| 42 61 73 65 48 54 54 50 | 53 65 72 76 65 72 2e 70 |BaseHTTP|Server.p|
|00003a10| 79 73 0e 00 00 00 76 65 | 72 73 69 6f 6e 5f 73 74 |ys....ve|rsion_st|
|00003a20| 72 69 6e 67 ba 01 00 00 | 73 04 00 00 00 00 01 00 |ring....|s.......|
|00003a30| 01 63 01 00 00 00 0c 00 | 00 00 09 00 00 00 43 00 |.c......|......C.|
|00003a40| 00 00 73 6b 00 00 00 74 | 00 00 69 00 00 83 00 00 |..sk...t|..i.....|
|00003a50| 7d 0a 00 74 00 00 69 02 | 00 7c 0a 00 83 01 00 5c |}..t..i.|.|.....\|
|00003a60| 09 00 7d 08 00 7d 04 00 | 7d 0b 00 7d 06 00 7d 02 |..}..}..|}..}..}.|
|00003a70| 00 7d 05 00 7d 01 00 7d | 09 00 7d 07 00 64 01 00 |.}..}..}|..}..d..|
|00003a80| 7c 00 00 69 0d 00 7c 01 | 00 19 7c 0b 00 7c 00 00 ||..i..|.|..|..|..|
|00003a90| 69 0e 00 7c 04 00 19 7c | 08 00 7c 06 00 7c 02 00 |i..|...||..|..|..|
|00003aa0| 7c 05 00 66 07 00 16 7d | 03 00 7c 03 00 53 64 02 ||..f...}|..|..Sd.|
|00003ab0| 00 53 28 03 00 00 00 73 | 40 00 00 00 52 65 74 75 |.S(....s|@...Retu|
|00003ac0| 72 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |rn the c|urrent d|
|00003ad0| 61 74 65 20 61 6e 64 20 | 74 69 6d 65 20 66 6f 72 |ate and |time for|
|00003ae0| 6d 61 74 74 65 64 20 66 | 6f 72 20 61 20 6d 65 73 |matted f|or a mes|
|00003af0| 73 61 67 65 20 68 65 61 | 64 65 72 2e 73 23 00 00 |sage hea|der.s#..|
|00003b00| 00 25 73 2c 20 25 30 32 | 64 20 25 33 73 20 25 34 |.%s, %02|d %3s %4|
|00003b10| 64 20 25 30 32 64 3a 25 | 30 32 64 3a 25 30 32 64 |d %02d:%|02d:%02d|
|00003b20| 20 47 4d 54 4e 28 10 00 | 00 00 73 04 00 00 00 74 | GMTN(..|..s....t|
|00003b30| 69 6d 65 73 03 00 00 00 | 6e 6f 77 73 06 00 00 00 |imes....|nows....|
|00003b40| 67 6d 74 69 6d 65 73 04 | 00 00 00 79 65 61 72 73 |gmtimes.|...years|
|00003b50| 05 00 00 00 6d 6f 6e 74 | 68 73 03 00 00 00 64 61 |....mont|hs....da|
|00003b60| 79 73 02 00 00 00 68 68 | 73 02 00 00 00 6d 6d 73 |ys....hh|s....mms|
|00003b70| 02 00 00 00 73 73 73 02 | 00 00 00 77 64 73 01 00 |....sss.|...wds..|
|00003b80| 00 00 79 73 01 00 00 00 | 7a 73 04 00 00 00 73 65 |..ys....|zs....se|
|00003b90| 6c 66 73 0b 00 00 00 77 | 65 65 6b 64 61 79 6e 61 |lfs....w|eekdayna|
|00003ba0| 6d 65 73 09 00 00 00 6d | 6f 6e 74 68 6e 61 6d 65 |mes....m|onthname|
|00003bb0| 73 01 00 00 00 73 28 0c | 00 00 00 73 04 00 00 00 |s....s(.|...s....|
|00003bc0| 73 65 6c 66 73 02 00 00 | 00 77 64 73 02 00 00 00 |selfs...|.wds....|
|00003bd0| 6d 6d 73 01 00 00 00 73 | 73 05 00 00 00 6d 6f 6e |mms....s|s....mon|
|00003be0| 74 68 73 02 00 00 00 73 | 73 73 02 00 00 00 68 68 |ths....s|ss....hh|
|00003bf0| 73 01 00 00 00 7a 73 04 | 00 00 00 79 65 61 72 73 |s....zs.|...years|
|00003c00| 01 00 00 00 79 73 03 00 | 00 00 6e 6f 77 73 03 00 |....ys..|..nows..|
|00003c10| 00 00 64 61 79 28 00 00 | 00 00 28 00 00 00 00 73 |..day(..|..(....s|
|00003c20| 51 00 00 00 2f 4c 69 62 | 72 61 72 79 2f 46 72 61 |Q.../Lib|rary/Fra|
|00003c30| 6d 65 77 6f 72 6b 73 2f | 50 79 74 68 6f 6e 2e 66 |meworks/|Python.f|
|00003c40| 72 61 6d 65 77 6f 72 6b | 2f 56 65 72 73 69 6f 6e |ramework|/Version|
|00003c50| 73 2f 32 2e 33 2f 6c 69 | 62 2f 70 79 74 68 6f 6e |s/2.3/li|b/python|
|00003c60| 32 2e 33 2f 42 61 73 65 | 48 54 54 50 53 65 72 76 |2.3/Base|HTTPServ|
|00003c70| 65 72 2e 70 79 73 10 00 | 00 00 64 61 74 65 5f 74 |er.pys..|..date_t|
|00003c80| 69 6d 65 5f 73 74 72 69 | 6e 67 be 01 00 00 73 0a |ime_stri|ng....s.|
|00003c90| 00 00 00 00 01 00 01 0c | 01 2a 01 2d 04 63 01 00 |........|.*.-.c..|
|00003ca0| 00 00 0c 00 00 00 09 00 | 00 00 43 00 00 00 73 61 |........|..C...sa|
|00003cb0| 00 00 00 74 00 00 69 00 | 00 83 00 00 7d 0a 00 74 |...t..i.|....}..t|
|00003cc0| 00 00 69 02 00 7c 0a 00 | 83 01 00 5c 09 00 7d 07 |..i..|..|...\..}.|
|00003cd0| 00 7d 04 00 7d 0b 00 7d | 06 00 7d 02 00 7d 05 00 |.}..}..}|..}..}..|
|00003ce0| 7d 09 00 7d 08 00 7d 01 | 00 64 01 00 7c 0b 00 7c |}..}..}.|.d..|..||
|00003cf0| 00 00 69 0d 00 7c 04 00 | 19 7c 07 00 7c 06 00 7c |..i..|..|.|..|..||
|00003d00| 02 00 7c 05 00 66 06 00 | 16 7d 03 00 7c 03 00 53 |..|..f..|.}..|..S|
|00003d10| 64 02 00 53 28 03 00 00 | 00 73 2e 00 00 00 52 65 |d..S(...|.s....Re|
|00003d20| 74 75 72 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |turn the| current|
|00003d30| 20 74 69 6d 65 20 66 6f | 72 6d 61 74 74 65 64 20 | time fo|rmatted |
|00003d40| 66 6f 72 20 6c 6f 67 67 | 69 6e 67 2e 73 1c 00 00 |for logg|ing.s...|
|00003d50| 00 25 30 32 64 2f 25 33 | 73 2f 25 30 34 64 20 25 |.%02d/%3|s/%04d %|
|00003d60| 30 32 64 3a 25 30 32 64 | 3a 25 30 32 64 4e 28 0f |02d:%02d|:%02dN(.|
|00003d70| 00 00 00 73 04 00 00 00 | 74 69 6d 65 73 03 00 00 |...s....|times...|
|00003d80| 00 6e 6f 77 73 09 00 00 | 00 6c 6f 63 61 6c 74 69 |.nows...|.localti|
|00003d90| 6d 65 73 04 00 00 00 79 | 65 61 72 73 05 00 00 00 |mes....y|ears....|
|00003da0| 6d 6f 6e 74 68 73 03 00 | 00 00 64 61 79 73 02 00 |months..|..days..|
|00003db0| 00 00 68 68 73 02 00 00 | 00 6d 6d 73 02 00 00 00 |..hhs...|.mms....|
|00003dc0| 73 73 73 01 00 00 00 78 | 73 01 00 00 00 79 73 01 |sss....x|s....ys.|
|00003dd0| 00 00 00 7a 73 04 00 00 | 00 73 65 6c 66 73 09 00 |...zs...|.selfs..|
|00003de0| 00 00 6d 6f 6e 74 68 6e | 61 6d 65 73 01 00 00 00 |..monthn|ames....|
|00003df0| 73 28 0c 00 00 00 73 04 | 00 00 00 73 65 6c 66 73 |s(....s.|...selfs|
|00003e00| 01 00 00 00 7a 73 02 00 | 00 00 6d 6d 73 01 00 00 |....zs..|..mms...|
|00003e10| 00 73 73 05 00 00 00 6d | 6f 6e 74 68 73 02 00 00 |.ss....m|onths...|
|00003e20| 00 73 73 73 02 00 00 00 | 68 68 73 04 00 00 00 79 |.sss....|hhs....y|
|00003e30| 65 61 72 73 01 00 00 00 | 79 73 01 00 00 00 78 73 |ears....|ys....xs|
|00003e40| 03 00 00 00 6e 6f 77 73 | 03 00 00 00 64 61 79 28 |....nows|....day(|
|00003e50| 00 00 00 00 28 00 00 00 | 00 73 51 00 00 00 2f 4c |....(...|.sQ.../L|
|00003e60| 69 62 72 61 72 79 2f 46 | 72 61 6d 65 77 6f 72 6b |ibrary/F|ramework|
|00003e70| 73 2f 50 79 74 68 6f 6e | 2e 66 72 61 6d 65 77 6f |s/Python|.framewo|
|00003e80| 72 6b 2f 56 65 72 73 69 | 6f 6e 73 2f 32 2e 33 2f |rk/Versi|ons/2.3/|
|00003e90| 6c 69 62 2f 70 79 74 68 | 6f 6e 32 2e 33 2f 42 61 |lib/pyth|on2.3/Ba|
|00003ea0| 73 65 48 54 54 50 53 65 | 72 76 65 72 2e 70 79 73 |seHTTPSe|rver.pys|
|00003eb0| 14 00 00 00 6c 6f 67 5f | 64 61 74 65 5f 74 69 6d |....log_|date_tim|
|00003ec0| 65 5f 73 74 72 69 6e 67 | c8 01 00 00 73 0a 00 00 |e_string|....s...|
|00003ed0| 00 00 01 00 01 0c 01 2a | 01 23 02 73 03 00 00 00 |.......*|.#.s....|
|00003ee0| 4d 6f 6e 73 03 00 00 00 | 54 75 65 73 03 00 00 00 |Mons....|Tues....|
|00003ef0| 57 65 64 73 03 00 00 00 | 54 68 75 73 03 00 00 00 |Weds....|Thus....|
|00003f00| 46 72 69 73 03 00 00 00 | 53 61 74 73 03 00 00 00 |Fris....|Sats....|
|00003f10| 53 75 6e 73 03 00 00 00 | 4a 61 6e 73 03 00 00 00 |Suns....|Jans....|
|00003f20| 46 65 62 73 03 00 00 00 | 4d 61 72 73 03 00 00 00 |Febs....|Mars....|
|00003f30| 41 70 72 73 03 00 00 00 | 4d 61 79 73 03 00 00 00 |Aprs....|Mays....|
|00003f40| 4a 75 6e 73 03 00 00 00 | 4a 75 6c 73 03 00 00 00 |Juns....|Juls....|
|00003f50| 41 75 67 73 03 00 00 00 | 53 65 70 73 03 00 00 00 |Augs....|Seps....|
|00003f60| 4f 63 74 73 03 00 00 00 | 4e 6f 76 73 03 00 00 00 |Octs....|Novs....|
|00003f70| 44 65 63 63 01 00 00 00 | 03 00 00 00 02 00 00 00 |Decc....|........|
|00003f80| 43 00 00 00 73 24 00 00 | 00 7c 00 00 69 01 00 64 |C...s$..|.|..i..d|
|00003f90| 01 00 20 5c 02 00 7d 01 | 00 7d 02 00 74 04 00 69 |.. \..}.|.}..t..i|
|00003fa0| 05 00 7c 01 00 83 01 00 | 53 64 02 00 53 28 03 00 |..|.....|Sd..S(..|
|00003fb0| 00 00 73 c3 00 00 00 52 | 65 74 75 72 6e 20 74 68 |..s....R|eturn th|
|00003fc0| 65 20 63 6c 69 65 6e 74 | 20 61 64 64 72 65 73 73 |e client| address|
|00003fd0| 20 66 6f 72 6d 61 74 74 | 65 64 20 66 6f 72 20 6c | formatt|ed for l|
|00003fe0| 6f 67 67 69 6e 67 2e 0a | 0a 20 20 20 20 20 20 20 |ogging..|. |
|00003ff0| 20 54 68 69 73 20 76 65 | 72 73 69 6f 6e 20 6c 6f | This ve|rsion lo|
|00004000| 6f 6b 73 20 75 70 20 74 | 68 65 20 66 75 6c 6c 20 |oks up t|he full |
|00004010| 68 6f 73 74 6e 61 6d 65 | 20 75 73 69 6e 67 20 67 |hostname| using g|
|00004020| 65 74 68 6f 73 74 62 79 | 61 64 64 72 28 29 2c 0a |ethostby|addr(),.|
|00004030| 20 20 20 20 20 20 20 20 | 61 6e 64 20 74 72 69 65 | |and trie|
|00004040| 73 20 74 6f 20 66 69 6e | 64 20 61 20 6e 61 6d 65 |s to fin|d a name|
|00004050| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 73 20 61 | that co|ntains a|
|00004060| 74 20 6c 65 61 73 74 20 | 6f 6e 65 20 64 6f 74 2e |t least |one dot.|
|00004070| 0a 0a 20 20 20 20 20 20 | 20 20 69 02 00 00 00 4e |.. | i....N|
|00004080| 28 06 00 00 00 73 04 00 | 00 00 73 65 6c 66 73 0e |(....s..|..selfs.|
|00004090| 00 00 00 63 6c 69 65 6e | 74 5f 61 64 64 72 65 73 |...clien|t_addres|
|000040a0| 73 73 04 00 00 00 68 6f | 73 74 73 04 00 00 00 70 |ss....ho|sts....p|
|000040b0| 6f 72 74 73 06 00 00 00 | 73 6f 63 6b 65 74 73 07 |orts....|sockets.|
|000040c0| 00 00 00 67 65 74 66 71 | 64 6e 28 03 00 00 00 73 |...getfq|dn(....s|
|000040d0| 04 00 00 00 73 65 6c 66 | 73 04 00 00 00 68 6f 73 |....self|s....hos|
|000040e0| 74 73 04 00 00 00 70 6f | 72 74 28 00 00 00 00 28 |ts....po|rt(....(|
|000040f0| 00 00 00 00 73 51 00 00 | 00 2f 4c 69 62 72 61 72 |....sQ..|./Librar|
|00004100| 79 2f 46 72 61 6d 65 77 | 6f 72 6b 73 2f 50 79 74 |y/Framew|orks/Pyt|
|00004110| 68 6f 6e 2e 66 72 61 6d | 65 77 6f 72 6b 2f 56 65 |hon.fram|ework/Ve|
|00004120| 72 73 69 6f 6e 73 2f 32 | 2e 33 2f 6c 69 62 2f 70 |rsions/2|.3/lib/p|
|00004130| 79 74 68 6f 6e 32 2e 33 | 2f 42 61 73 65 48 54 54 |ython2.3|/BaseHTT|
|00004140| 50 53 65 72 76 65 72 2e | 70 79 73 0e 00 00 00 61 |PServer.|pys....a|
|00004150| 64 64 72 65 73 73 5f 73 | 74 72 69 6e 67 d6 01 00 |ddress_s|tring...|
|00004160| 00 73 06 00 00 00 00 06 | 00 02 13 01 73 08 00 00 |.s......|....s...|
|00004170| 00 48 54 54 50 2f 31 2e | 30 69 64 00 00 00 73 08 |.HTTP/1.|0id...s.|
|00004180| 00 00 00 43 6f 6e 74 69 | 6e 75 65 73 21 00 00 00 |...Conti|nues!...|
|00004190| 52 65 71 75 65 73 74 20 | 72 65 63 65 69 76 65 64 |Request |received|
|000041a0| 2c 20 70 6c 65 61 73 65 | 20 63 6f 6e 74 69 6e 75 |, please| continu|
|000041b0| 65 69 65 00 00 00 73 13 | 00 00 00 53 77 69 74 63 |eie...s.|...Switc|
|000041c0| 68 69 6e 67 20 50 72 6f | 74 6f 63 6f 6c 73 73 2e |hing Pro|tocolss.|
|000041d0| 00 00 00 53 77 69 74 63 | 68 69 6e 67 20 74 6f 20 |...Switc|hing to |
|000041e0| 6e 65 77 20 70 72 6f 74 | 6f 63 6f 6c 3b 20 6f 62 |new prot|ocol; ob|
|000041f0| 65 79 20 55 70 67 72 61 | 64 65 20 68 65 61 64 65 |ey Upgra|de heade|
|00004200| 72 69 c8 00 00 00 73 02 | 00 00 00 4f 4b 73 23 00 |ri....s.|...OKs#.|
|00004210| 00 00 52 65 71 75 65 73 | 74 20 66 75 6c 66 69 6c |..Reques|t fulfil|
|00004220| 6c 65 64 2c 20 64 6f 63 | 75 6d 65 6e 74 20 66 6f |led, doc|ument fo|
|00004230| 6c 6c 6f 77 73 69 c9 00 | 00 00 73 07 00 00 00 43 |llowsi..|..s....C|
|00004240| 72 65 61 74 65 64 73 1d | 00 00 00 44 6f 63 75 6d |reateds.|...Docum|
|00004250| 65 6e 74 20 63 72 65 61 | 74 65 64 2c 20 55 52 4c |ent crea|ted, URL|
|00004260| 20 66 6f 6c 6c 6f 77 73 | 69 ca 00 00 00 73 08 00 | follows|i....s..|
|00004270| 00 00 41 63 63 65 70 74 | 65 64 73 2f 00 00 00 52 |..Accept|eds/...R|
|00004280| 65 71 75 65 73 74 20 61 | 63 63 65 70 74 65 64 2c |equest a|ccepted,|
|00004290| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 63 6f 6e 74 | process|ing cont|
|000042a0| 69 6e 75 65 73 20 6f 66 | 66 2d 6c 69 6e 65 69 cb |inues of|f-linei.|
|000042b0| 00 00 00 73 1d 00 00 00 | 4e 6f 6e 2d 41 75 74 68 |...s....|Non-Auth|
|000042c0| 6f 72 69 74 61 74 69 76 | 65 20 49 6e 66 6f 72 6d |oritativ|e Inform|
|000042d0| 61 74 69 6f 6e 73 1c 00 | 00 00 52 65 71 75 65 73 |ations..|..Reques|
|000042e0| 74 20 66 75 6c 66 69 6c | 6c 65 64 20 66 72 6f 6d |t fulfil|led from|
|000042f0| 20 63 61 63 68 65 69 cc | 00 00 00 73 0b 00 00 00 | cachei.|...s....|
|00004300| 4e 6f 20 72 65 73 70 6f | 6e 73 65 73 22 00 00 00 |No respo|nses"...|
|00004310| 52 65 71 75 65 73 74 20 | 66 75 6c 66 69 6c 6c 65 |Request |fulfille|
|00004320| 64 2c 20 6e 6f 74 68 69 | 6e 67 20 66 6f 6c 6c 6f |d, nothi|ng follo|
|00004330| 77 73 69 cd 00 00 00 73 | 0d 00 00 00 52 65 73 65 |wsi....s|....Rese|
|00004340| 74 20 43 6f 6e 74 65 6e | 74 73 23 00 00 00 43 6c |t Conten|ts#...Cl|
|00004350| 65 61 72 20 69 6e 70 75 | 74 20 66 6f 72 6d 20 66 |ear inpu|t form f|
|00004360| 6f 72 20 66 75 72 74 68 | 65 72 20 69 6e 70 75 74 |or furth|er input|
|00004370| 2e 69 ce 00 00 00 73 0f | 00 00 00 50 61 72 74 69 |.i....s.|...Parti|
|00004380| 61 6c 20 43 6f 6e 74 65 | 6e 74 73 18 00 00 00 50 |al Conte|nts....P|
|00004390| 61 72 74 69 61 6c 20 63 | 6f 6e 74 65 6e 74 20 66 |artial c|ontent f|
|000043a0| 6f 6c 6c 6f 77 73 2e 69 | 2c 01 00 00 73 10 00 00 |ollows.i|,...s...|
|000043b0| 00 4d 75 6c 74 69 70 6c | 65 20 43 68 6f 69 63 65 |.Multipl|e Choice|
|000043c0| 73 73 2c 00 00 00 4f 62 | 6a 65 63 74 20 68 61 73 |ss,...Ob|ject has|
|000043d0| 20 73 65 76 65 72 61 6c | 20 72 65 73 6f 75 72 63 | several| resourc|
|000043e0| 65 73 20 2d 2d 20 73 65 | 65 20 55 52 49 20 6c 69 |es -- se|e URI li|
|000043f0| 73 74 69 2d 01 00 00 73 | 11 00 00 00 4d 6f 76 65 |sti-...s|....Move|
|00004400| 64 20 50 65 72 6d 61 6e | 65 6e 74 6c 79 73 28 00 |d Perman|entlys(.|
|00004410| 00 00 4f 62 6a 65 63 74 | 20 6d 6f 76 65 64 20 70 |..Object| moved p|
|00004420| 65 72 6d 61 6e 65 6e 74 | 6c 79 20 2d 2d 20 73 65 |ermanent|ly -- se|
|00004430| 65 20 55 52 49 20 6c 69 | 73 74 69 2e 01 00 00 73 |e URI li|sti....s|
|00004440| 05 00 00 00 46 6f 75 6e | 64 73 28 00 00 00 4f 62 |....Foun|ds(...Ob|
|00004450| 6a 65 63 74 20 6d 6f 76 | 65 64 20 74 65 6d 70 6f |ject mov|ed tempo|
|00004460| 72 61 72 69 6c 79 20 2d | 2d 20 73 65 65 20 55 52 |rarily -|- see UR|
|00004470| 49 20 6c 69 73 74 69 2f | 01 00 00 73 09 00 00 00 |I listi/|...s....|
|00004480| 53 65 65 20 4f 74 68 65 | 72 73 27 00 00 00 4f 62 |See Othe|rs'...Ob|
|00004490| 6a 65 63 74 20 6d 6f 76 | 65 64 20 2d 2d 20 73 65 |ject mov|ed -- se|
|000044a0| 65 20 4d 65 74 68 6f 64 | 20 61 6e 64 20 55 52 4c |e Method| and URL|
|000044b0| 20 6c 69 73 74 69 30 01 | 00 00 73 0c 00 00 00 4e | listi0.|..s....N|
|000044c0| 6f 74 20 6d 6f 64 69 66 | 69 65 64 73 29 00 00 00 |ot modif|ieds)...|
|000044d0| 44 6f 63 75 6d 65 6e 74 | 20 68 61 73 20 6e 6f 74 |Document| has not|
|000044e0| 20 63 68 61 6e 67 65 64 | 20 73 69 6e 63 65 20 67 | changed| since g|
|000044f0| 69 76 65 6e 20 74 69 6d | 65 69 31 01 00 00 73 09 |iven tim|ei1...s.|
|00004500| 00 00 00 55 73 65 20 50 | 72 6f 78 79 73 41 00 00 |...Use P|roxysA..|
|00004510| 00 59 6f 75 20 6d 75 73 | 74 20 75 73 65 20 70 72 |.You mus|t use pr|
|00004520| 6f 78 79 20 73 70 65 63 | 69 66 69 65 64 20 69 6e |oxy spec|ified in|
|00004530| 20 4c 6f 63 61 74 69 6f | 6e 20 74 6f 20 61 63 63 | Locatio|n to acc|
|00004540| 65 73 73 20 74 68 69 73 | 20 72 65 73 6f 75 72 63 |ess this| resourc|
|00004550| 65 2e 69 33 01 00 00 73 | 12 00 00 00 54 65 6d 70 |e.i3...s|....Temp|
|00004560| 6f 72 61 72 79 20 52 65 | 64 69 72 65 63 74 69 90 |orary Re|directi.|
|00004570| 01 00 00 73 0b 00 00 00 | 42 61 64 20 72 65 71 75 |...s....|Bad requ|
|00004580| 65 73 74 73 28 00 00 00 | 42 61 64 20 72 65 71 75 |ests(...|Bad requ|
|00004590| 65 73 74 20 73 79 6e 74 | 61 78 20 6f 72 20 75 6e |est synt|ax or un|
|000045a0| 73 75 70 70 6f 72 74 65 | 64 20 6d 65 74 68 6f 64 |supporte|d method|
|000045b0| 69 91 01 00 00 73 0c 00 | 00 00 55 6e 61 75 74 68 |i....s..|..Unauth|
|000045c0| 6f 72 69 7a 65 64 73 2a | 00 00 00 4e 6f 20 70 65 |orizeds*|...No pe|
|000045d0| 72 6d 69 73 73 69 6f 6e | 20 2d 2d 20 73 65 65 20 |rmission| -- see |
|000045e0| 61 75 74 68 6f 72 69 7a | 61 74 69 6f 6e 20 73 63 |authoriz|ation sc|
|000045f0| 68 65 6d 65 73 69 92 01 | 00 00 73 10 00 00 00 50 |hemesi..|..s....P|
|00004600| 61 79 6d 65 6e 74 20 72 | 65 71 75 69 72 65 64 73 |ayment r|equireds|
|00004610| 22 00 00 00 4e 6f 20 70 | 61 79 6d 65 6e 74 20 2d |"...No p|ayment -|
|00004620| 2d 20 73 65 65 20 63 68 | 61 72 67 69 6e 67 20 73 |- see ch|arging s|
|00004630| 63 68 65 6d 65 73 69 93 | 01 00 00 73 09 00 00 00 |chemesi.|...s....|
|00004640| 46 6f 72 62 69 64 64 65 | 6e 73 30 00 00 00 52 65 |Forbidde|ns0...Re|
|00004650| 71 75 65 73 74 20 66 6f | 72 62 69 64 64 65 6e 20 |quest fo|rbidden |
|00004660| 2d 2d 20 61 75 74 68 6f | 72 69 7a 61 74 69 6f 6e |-- autho|rization|
|00004670| 20 77 69 6c 6c 20 6e 6f | 74 20 68 65 6c 70 69 94 | will no|t helpi.|
|00004680| 01 00 00 73 09 00 00 00 | 4e 6f 74 20 46 6f 75 6e |...s....|Not Foun|
|00004690| 64 73 1d 00 00 00 4e 6f | 74 68 69 6e 67 20 6d 61 |ds....No|thing ma|
|000046a0| 74 63 68 65 73 20 74 68 | 65 20 67 69 76 65 6e 20 |tches th|e given |
|000046b0| 55 52 49 69 95 01 00 00 | 73 12 00 00 00 4d 65 74 |URIi....|s....Met|
|000046c0| 68 6f 64 20 4e 6f 74 20 | 41 6c 6c 6f 77 65 64 73 |hod Not |Alloweds|
|000046d0| 2c 00 00 00 53 70 65 63 | 69 66 69 65 64 20 6d 65 |,...Spec|ified me|
|000046e0| 74 68 6f 64 20 69 73 20 | 69 6e 76 61 6c 69 64 20 |thod is |invalid |
|000046f0| 66 6f 72 20 74 68 69 73 | 20 73 65 72 76 65 72 2e |for this| server.|
|00004700| 69 96 01 00 00 73 0e 00 | 00 00 4e 6f 74 20 41 63 |i....s..|..Not Ac|
|00004710| 63 65 70 74 61 62 6c 65 | 73 26 00 00 00 55 52 49 |ceptable|s&...URI|
|00004720| 20 6e 6f 74 20 61 76 61 | 69 6c 61 62 6c 65 20 69 | not ava|ilable i|
|00004730| 6e 20 70 72 65 66 65 72 | 72 65 64 20 66 6f 72 6d |n prefer|red form|
|00004740| 61 74 2e 69 97 01 00 00 | 73 1d 00 00 00 50 72 6f |at.i....|s....Pro|
|00004750| 78 79 20 41 75 74 68 65 | 6e 74 69 63 61 74 69 6f |xy Authe|nticatio|
|00004760| 6e 20 52 65 71 75 69 72 | 65 64 73 38 00 00 00 59 |n Requir|eds8...Y|
|00004770| 6f 75 20 6d 75 73 74 20 | 61 75 74 68 65 6e 74 69 |ou must |authenti|
|00004780| 63 61 74 65 20 77 69 74 | 68 20 74 68 69 73 20 70 |cate wit|h this p|
|00004790| 72 6f 78 79 20 62 65 66 | 6f 72 65 20 70 72 6f 63 |roxy bef|ore proc|
|000047a0| 65 65 64 69 6e 67 2e 69 | 98 01 00 00 73 10 00 00 |eeding.i|....s...|
|000047b0| 00 52 65 71 75 65 73 74 | 20 54 69 6d 65 2d 6f 75 |.Request| Time-ou|
|000047c0| 74 73 23 00 00 00 52 65 | 71 75 65 73 74 20 74 69 |ts#...Re|quest ti|
|000047d0| 6d 65 64 20 6f 75 74 3b | 20 74 72 79 20 61 67 61 |med out;| try aga|
|000047e0| 69 6e 20 6c 61 74 65 72 | 2e 69 99 01 00 00 73 08 |in later|.i....s.|
|000047f0| 00 00 00 43 6f 6e 66 6c | 69 63 74 73 11 00 00 00 |...Confl|icts....|
|00004800| 52 65 71 75 65 73 74 20 | 63 6f 6e 66 6c 69 63 74 |Request |conflict|
|00004810| 2e 69 9a 01 00 00 73 04 | 00 00 00 47 6f 6e 65 73 |.i....s.|...Gones|
|00004820| 36 00 00 00 55 52 49 20 | 6e 6f 20 6c 6f 6e 67 65 |6...URI |no longe|
|00004830| 72 20 65 78 69 73 74 73 | 20 61 6e 64 20 68 61 73 |r exists| and has|
|00004840| 20 62 65 65 6e 20 70 65 | 72 6d 61 6e 65 6e 74 6c | been pe|rmanentl|
|00004850| 79 20 72 65 6d 6f 76 65 | 64 2e 69 9b 01 00 00 73 |y remove|d.i....s|
|00004860| 0f 00 00 00 4c 65 6e 67 | 74 68 20 52 65 71 75 69 |....Leng|th Requi|
|00004870| 72 65 64 73 23 00 00 00 | 43 6c 69 65 6e 74 20 6d |reds#...|Client m|
|00004880| 75 73 74 20 73 70 65 63 | 69 66 79 20 43 6f 6e 74 |ust spec|ify Cont|
|00004890| 65 6e 74 2d 4c 65 6e 67 | 74 68 2e 69 9c 01 00 00 |ent-Leng|th.i....|
|000048a0| 73 13 00 00 00 50 72 65 | 63 6f 6e 64 69 74 69 6f |s....Pre|conditio|
|000048b0| 6e 20 46 61 69 6c 65 64 | 73 21 00 00 00 50 72 65 |n Failed|s!...Pre|
|000048c0| 63 6f 6e 64 69 74 69 6f | 6e 20 69 6e 20 68 65 61 |conditio|n in hea|
|000048d0| 64 65 72 73 20 69 73 20 | 66 61 6c 73 65 2e 69 9d |ders is |false.i.|
|000048e0| 01 00 00 73 18 00 00 00 | 52 65 71 75 65 73 74 20 |...s....|Request |
|000048f0| 45 6e 74 69 74 79 20 54 | 6f 6f 20 4c 61 72 67 65 |Entity T|oo Large|
|00004900| 73 14 00 00 00 45 6e 74 | 69 74 79 20 69 73 20 74 |s....Ent|ity is t|
|00004910| 6f 6f 20 6c 61 72 67 65 | 2e 69 9e 01 00 00 73 14 |oo large|.i....s.|
|00004920| 00 00 00 52 65 71 75 65 | 73 74 2d 55 52 49 20 54 |...Reque|st-URI T|
|00004930| 6f 6f 20 4c 6f 6e 67 73 | 10 00 00 00 55 52 49 20 |oo Longs|....URI |
|00004940| 69 73 20 74 6f 6f 20 6c | 6f 6e 67 2e 69 9f 01 00 |is too l|ong.i...|
|00004950| 00 73 16 00 00 00 55 6e | 73 75 70 70 6f 72 74 65 |.s....Un|supporte|
|00004960| 64 20 4d 65 64 69 61 20 | 54 79 70 65 73 22 00 00 |d Media |Types"..|
|00004970| 00 45 6e 74 69 74 79 20 | 62 6f 64 79 20 69 6e 20 |.Entity |body in |
|00004980| 75 6e 73 75 70 70 6f 72 | 74 65 64 20 66 6f 72 6d |unsuppor|ted form|
|00004990| 61 74 2e 69 a0 01 00 00 | 73 1f 00 00 00 52 65 71 |at.i....|s....Req|
|000049a0| 75 65 73 74 65 64 20 52 | 61 6e 67 65 20 4e 6f 74 |uested R|ange Not|
|000049b0| 20 53 61 74 69 73 66 69 | 61 62 6c 65 73 1d 00 00 | Satisfi|ables...|
|000049c0| 00 43 61 6e 6e 6f 74 20 | 73 61 74 69 73 66 79 20 |.Cannot |satisfy |
|000049d0| 72 65 71 75 65 73 74 20 | 72 61 6e 67 65 2e 69 a1 |request |range.i.|
|000049e0| 01 00 00 73 12 00 00 00 | 45 78 70 65 63 74 61 74 |...s....|Expectat|
|000049f0| 69 6f 6e 20 46 61 69 6c | 65 64 73 28 00 00 00 45 |ion Fail|eds(...E|
|00004a00| 78 70 65 63 74 20 63 6f | 6e 64 69 74 69 6f 6e 20 |xpect co|ndition |
|00004a10| 63 6f 75 6c 64 20 6e 6f | 74 20 62 65 20 73 61 74 |could no|t be sat|
|00004a20| 69 73 66 69 65 64 2e 69 | f4 01 00 00 73 0e 00 00 |isfied.i|....s...|
|00004a30| 00 49 6e 74 65 72 6e 61 | 6c 20 65 72 72 6f 72 73 |.Interna|l errors|
|00004a40| 1c 00 00 00 53 65 72 76 | 65 72 20 67 6f 74 20 69 |....Serv|er got i|
|00004a50| 74 73 65 6c 66 20 69 6e | 20 74 72 6f 75 62 6c 65 |tself in| trouble|
|00004a60| 69 f5 01 00 00 73 0f 00 | 00 00 4e 6f 74 20 49 6d |i....s..|..Not Im|
|00004a70| 70 6c 65 6d 65 6e 74 65 | 64 73 26 00 00 00 53 65 |plemente|ds&...Se|
|00004a80| 72 76 65 72 20 64 6f 65 | 73 20 6e 6f 74 20 73 75 |rver doe|s not su|
|00004a90| 70 70 6f 72 74 20 74 68 | 69 73 20 6f 70 65 72 61 |pport th|is opera|
|00004aa0| 74 69 6f 6e 69 f6 01 00 | 00 73 0b 00 00 00 42 61 |tioni...|.s....Ba|
|00004ab0| 64 20 47 61 74 65 77 61 | 79 73 2c 00 00 00 49 6e |d Gatewa|ys,...In|
|00004ac0| 76 61 6c 69 64 20 72 65 | 73 70 6f 6e 73 65 73 20 |valid re|sponses |
|00004ad0| 66 72 6f 6d 20 61 6e 6f | 74 68 65 72 20 73 65 72 |from ano|ther ser|
|00004ae0| 76 65 72 2f 70 72 6f 78 | 79 2e 69 f7 01 00 00 73 |ver/prox|y.i....s|
|00004af0| 1e 00 00 00 53 65 72 76 | 69 63 65 20 74 65 6d 70 |....Serv|ice temp|
|00004b00| 6f 72 61 72 69 6c 79 20 | 6f 76 65 72 6c 6f 61 64 |orarily |overload|
|00004b10| 65 64 73 38 00 00 00 54 | 68 65 20 73 65 72 76 65 |eds8...T|he serve|
|00004b20| 72 20 63 61 6e 6e 6f 74 | 20 70 72 6f 63 65 73 73 |r cannot| process|
|00004b30| 20 74 68 65 20 72 65 71 | 75 65 73 74 20 64 75 65 | the req|uest due|
|00004b40| 20 74 6f 20 61 20 68 69 | 67 68 20 6c 6f 61 64 69 | to a hi|gh loadi|
|00004b50| f8 01 00 00 73 0f 00 00 | 00 47 61 74 65 77 61 79 |....s...|.Gateway|
|00004b60| 20 74 69 6d 65 6f 75 74 | 73 34 00 00 00 54 68 65 | timeout|s4...The|
|00004b70| 20 67 61 74 65 77 61 79 | 20 73 65 72 76 65 72 20 | gateway| server |
|00004b80| 64 69 64 20 6e 6f 74 20 | 72 65 63 65 69 76 65 20 |did not |receive |
|00004b90| 61 20 74 69 6d 65 6c 79 | 20 72 65 73 70 6f 6e 73 |a timely| respons|
|00004ba0| 65 69 f9 01 00 00 73 1a | 00 00 00 48 54 54 50 20 |ei....s.|...HTTP |
|00004bb0| 56 65 72 73 69 6f 6e 20 | 6e 6f 74 20 73 75 70 70 |Version |not supp|
|00004bc0| 6f 72 74 65 64 73 17 00 | 00 00 43 61 6e 6e 6f 74 |orteds..|..Cannot|
|00004bd0| 20 66 75 6c 66 69 6c 6c | 20 72 65 71 75 65 73 74 | fulfill| request|
|00004be0| 2e 28 21 00 00 00 73 08 | 00 00 00 5f 5f 6e 61 6d |.(!...s.|...__nam|
|00004bf0| 65 5f 5f 73 0a 00 00 00 | 5f 5f 6d 6f 64 75 6c 65 |e__s....|__module|
|00004c00| 5f 5f 73 07 00 00 00 5f | 5f 64 6f 63 5f 5f 73 03 |__s...._|_doc__s.|
|00004c10| 00 00 00 73 79 73 73 07 | 00 00 00 76 65 72 73 69 |...syss.|...versi|
|00004c20| 6f 6e 73 05 00 00 00 73 | 70 6c 69 74 73 0b 00 00 |ons....s|plits...|
|00004c30| 00 73 79 73 5f 76 65 72 | 73 69 6f 6e 73 0b 00 00 |.sys_ver|sions...|
|00004c40| 00 5f 5f 76 65 72 73 69 | 6f 6e 5f 5f 73 0e 00 00 |.__versi|on__s...|
|00004c50| 00 73 65 72 76 65 72 5f | 76 65 72 73 69 6f 6e 73 |.server_|versions|
|00004c60| 0d 00 00 00 70 61 72 73 | 65 5f 72 65 71 75 65 73 |....pars|e_reques|
|00004c70| 74 73 12 00 00 00 68 61 | 6e 64 6c 65 5f 6f 6e 65 |ts....ha|ndle_one|
|00004c80| 5f 72 65 71 75 65 73 74 | 73 06 00 00 00 68 61 6e |_request|s....han|
|00004c90| 64 6c 65 73 04 00 00 00 | 4e 6f 6e 65 73 0a 00 00 |dles....|Nones...|
|00004ca0| 00 73 65 6e 64 5f 65 72 | 72 6f 72 73 15 00 00 00 |.send_er|rors....|
|00004cb0| 44 45 46 41 55 4c 54 5f | 45 52 52 4f 52 5f 4d 45 |DEFAULT_|ERROR_ME|
|00004cc0| 53 53 41 47 45 73 14 00 | 00 00 65 72 72 6f 72 5f |SSAGEs..|..error_|
|00004cd0| 6d 65 73 73 61 67 65 5f | 66 6f 72 6d 61 74 73 0d |message_|formats.|
|00004ce0| 00 00 00 73 65 6e 64 5f | 72 65 73 70 6f 6e 73 65 |...send_|response|
|00004cf0| 73 0b 00 00 00 73 65 6e | 64 5f 68 65 61 64 65 72 |s....sen|d_header|
|00004d00| 73 0b 00 00 00 65 6e 64 | 5f 68 65 61 64 65 72 73 |s....end|_headers|
|00004d10| 73 0b 00 00 00 6c 6f 67 | 5f 72 65 71 75 65 73 74 |s....log|_request|
|00004d20| 73 09 00 00 00 6c 6f 67 | 5f 65 72 72 6f 72 73 0b |s....log|_errors.|
|00004d30| 00 00 00 6c 6f 67 5f 6d | 65 73 73 61 67 65 73 0e |...log_m|essages.|
|00004d40| 00 00 00 76 65 72 73 69 | 6f 6e 5f 73 74 72 69 6e |...versi|on_strin|
|00004d50| 67 73 10 00 00 00 64 61 | 74 65 5f 74 69 6d 65 5f |gs....da|te_time_|
|00004d60| 73 74 72 69 6e 67 73 14 | 00 00 00 6c 6f 67 5f 64 |strings.|...log_d|
|00004d70| 61 74 65 5f 74 69 6d 65 | 5f 73 74 72 69 6e 67 73 |ate_time|_strings|
|00004d80| 0b 00 00 00 77 65 65 6b | 64 61 79 6e 61 6d 65 73 |....week|daynames|
|00004d90| 09 00 00 00 6d 6f 6e 74 | 68 6e 61 6d 65 73 0e 00 |....mont|hnames..|
|00004da0| 00 00 61 64 64 72 65 73 | 73 5f 73 74 72 69 6e 67 |..addres|s_string|
|00004db0| 73 10 00 00 00 70 72 6f | 74 6f 63 6f 6c 5f 76 65 |s....pro|tocol_ve|
|00004dc0| 72 73 69 6f 6e 73 09 00 | 00 00 6d 69 6d 65 74 6f |rsions..|..mimeto|
|00004dd0| 6f 6c 73 73 07 00 00 00 | 4d 65 73 73 61 67 65 73 |olss....|Messages|
|00004de0| 0c 00 00 00 4d 65 73 73 | 61 67 65 43 6c 61 73 73 |....Mess|ageClass|
|00004df0| 73 09 00 00 00 72 65 73 | 70 6f 6e 73 65 73 28 00 |s....res|ponses(.|
|00004e00| 00 00 00 28 00 00 00 00 | 28 00 00 00 00 73 51 00 |...(....|(....sQ.|
|00004e10| 00 00 2f 4c 69 62 72 61 | 72 79 2f 46 72 61 6d 65 |../Libra|ry/Frame|
|00004e20| 77 6f 72 6b 73 2f 50 79 | 74 68 6f 6e 2e 66 72 61 |works/Py|thon.fra|
|00004e30| 6d 65 77 6f 72 6b 2f 56 | 65 72 73 69 6f 6e 73 2f |mework/V|ersions/|
|00004e40| 32 2e 33 2f 6c 69 62 2f | 70 79 74 68 6f 6e 32 2e |2.3/lib/|python2.|
|00004e50| 33 2f 42 61 73 65 48 54 | 54 50 53 65 72 76 65 72 |3/BaseHT|TPServer|
|00004e60| 2e 70 79 73 16 00 00 00 | 42 61 73 65 48 54 54 50 |.pys....|BaseHTTP|
|00004e70| 52 65 71 75 65 73 74 48 | 61 6e 64 6c 65 72 6a 00 |RequestH|andlerj.|
|00004e80| 00 00 73 2e 00 00 00 0c | 66 00 03 17 05 0a 02 09 |..s.....|f.......|
|00004e90| 51 09 15 09 08 0c 1e 06 | 02 0c 14 09 0b 09 05 0f |Q.......|........|
|00004ea0| 0a 09 0e 09 16 09 04 09 | 0a 09 08 1b 02 2d 04 09 |........|.....-..|
|00004eb0| 0f 06 03 09 05 73 08 00 | 00 00 48 54 54 50 2f 31 |.....s..|..HTTP/1|
|00004ec0| 2e 30 63 03 00 00 00 07 | 00 00 00 03 00 00 00 43 |.0c.....|.......C|
|00004ed0| 00 00 00 73 89 00 00 00 | 74 00 00 69 01 00 64 01 |...s....|t..i..d.|
|00004ee0| 00 1f 6f 17 00 01 74 02 | 00 74 00 00 69 01 00 64 |..o...t.|.t..i..d|
|00004ef0| 01 00 19 83 01 00 7d 06 | 00 6e 07 00 01 64 02 00 |......}.|.n...d..|
|00004f00| 7d 06 00 64 03 00 7c 06 | 00 66 02 00 7d 04 00 7c |}..d..|.|.f..}..||
|00004f10| 02 00 7c 00 00 5f 07 00 | 7c 01 00 7c 04 00 7c 00 |..|.._..||..|..|.|
|00004f20| 00 83 02 00 7d 03 00 7c | 03 00 69 0a 00 69 0b 00 |....}..||..i..i..|
|00004f30| 83 00 00 7d 05 00 64 04 | 00 47 7c 05 00 64 05 00 |...}..d.|.G|..d..|
|00004f40| 19 47 64 06 00 47 7c 05 | 00 64 01 00 19 47 64 07 |.Gd..G|.|.d...Gd.|
|00004f50| 00 47 48 7c 03 00 69 0d | 00 83 00 00 01 64 08 00 |.GH|..i.|.....d..|
|00004f60| 53 28 09 00 00 00 73 7f | 00 00 00 54 65 73 74 20 |S(....s.|...Test |
|00004f70| 74 68 65 20 48 54 54 50 | 20 72 65 71 75 65 73 74 |the HTTP| request|
|00004f80| 20 68 61 6e 64 6c 65 72 | 20 63 6c 61 73 73 2e 0a | handler| class..|
|00004f90| 0a 20 20 20 20 54 68 69 | 73 20 72 75 6e 73 20 61 |. Thi|s runs a|
|00004fa0| 6e 20 48 54 54 50 20 73 | 65 72 76 65 72 20 6f 6e |n HTTP s|erver on|
|00004fb0| 20 70 6f 72 74 20 38 30 | 30 30 20 28 6f 72 20 74 | port 80|00 (or t|
|00004fc0| 68 65 20 66 69 72 73 74 | 20 63 6f 6d 6d 61 6e 64 |he first| command|
|00004fd0| 20 6c 69 6e 65 0a 20 20 | 20 20 61 72 67 75 6d 65 | line. | argume|
|00004fe0| 6e 74 29 2e 0a 0a 20 20 | 20 20 69 01 00 00 00 69 |nt)... | i....i|
|00004ff0| 40 1f 00 00 73 00 00 00 | 00 73 0f 00 00 00 53 65 |@...s...|.s....Se|
|00005000| 72 76 69 6e 67 20 48 54 | 54 50 20 6f 6e 69 00 00 |rving HT|TP oni..|
|00005010| 00 00 73 04 00 00 00 70 | 6f 72 74 73 03 00 00 00 |..s....p|orts....|
|00005020| 2e 2e 2e 4e 28 0e 00 00 | 00 73 03 00 00 00 73 79 |...N(...|.s....sy|
|00005030| 73 73 04 00 00 00 61 72 | 67 76 73 03 00 00 00 69 |ss....ar|gvs....i|
|00005040| 6e 74 73 04 00 00 00 70 | 6f 72 74 73 0e 00 00 00 |nts....p|orts....|
|00005050| 73 65 72 76 65 72 5f 61 | 64 64 72 65 73 73 73 08 |server_a|ddresss.|
|00005060| 00 00 00 70 72 6f 74 6f | 63 6f 6c 73 0c 00 00 00 |...proto|cols....|
|00005070| 48 61 6e 64 6c 65 72 43 | 6c 61 73 73 73 10 00 00 |HandlerC|lasss...|
|00005080| 00 70 72 6f 74 6f 63 6f | 6c 5f 76 65 72 73 69 6f |.protoco|l_versio|
|00005090| 6e 73 0b 00 00 00 53 65 | 72 76 65 72 43 6c 61 73 |ns....Se|rverClas|
|000050a0| 73 73 05 00 00 00 68 74 | 74 70 64 73 06 00 00 00 |ss....ht|tpds....|
|000050b0| 73 6f 63 6b 65 74 73 0b | 00 00 00 67 65 74 73 6f |sockets.|...getso|
|000050c0| 63 6b 6e 61 6d 65 73 02 | 00 00 00 73 61 73 0d 00 |cknames.|...sas..|
|000050d0| 00 00 73 65 72 76 65 5f | 66 6f 72 65 76 65 72 28 |..serve_|forever(|
|000050e0| 07 00 00 00 73 0c 00 00 | 00 48 61 6e 64 6c 65 72 |....s...|.Handler|
|000050f0| 43 6c 61 73 73 73 0b 00 | 00 00 53 65 72 76 65 72 |Classs..|..Server|
|00005100| 43 6c 61 73 73 73 08 00 | 00 00 70 72 6f 74 6f 63 |Classs..|..protoc|
|00005110| 6f 6c 73 05 00 00 00 68 | 74 74 70 64 73 0e 00 00 |ols....h|ttpds...|
|00005120| 00 73 65 72 76 65 72 5f | 61 64 64 72 65 73 73 73 |.server_|addresss|
|00005130| 02 00 00 00 73 61 73 04 | 00 00 00 70 6f 72 74 28 |....sas.|...port(|
|00005140| 00 00 00 00 28 00 00 00 | 00 73 51 00 00 00 2f 4c |....(...|.sQ.../L|
|00005150| 69 62 72 61 72 79 2f 46 | 72 61 6d 65 77 6f 72 6b |ibrary/F|ramework|
|00005160| 73 2f 50 79 74 68 6f 6e | 2e 66 72 61 6d 65 77 6f |s/Python|.framewo|
|00005170| 72 6b 2f 56 65 72 73 69 | 6f 6e 73 2f 32 2e 33 2f |rk/Versi|ons/2.3/|
|00005180| 6c 69 62 2f 70 79 74 68 | 6f 6e 32 2e 33 2f 42 61 |lib/pyth|on2.3/Ba|
|00005190| 73 65 48 54 54 50 53 65 | 72 76 65 72 2e 70 79 73 |seHTTPSe|rver.pys|
|000051a0| 04 00 00 00 74 65 73 74 | 30 02 00 00 73 14 00 00 |....test|0...s...|
|000051b0| 00 00 07 00 02 0e 01 17 | 02 06 01 0c 02 09 01 0f |........|........|
|000051c0| 02 0f 01 1d 01 73 08 00 | 00 00 5f 5f 6d 61 69 6e |.....s..|..__main|
|000051d0| 5f 5f 28 10 00 00 00 73 | 07 00 00 00 5f 5f 64 6f |__(....s|....__do|
|000051e0| 63 5f 5f 73 0b 00 00 00 | 5f 5f 76 65 72 73 69 6f |c__s....|__versio|
|000051f0| 6e 5f 5f 73 07 00 00 00 | 5f 5f 61 6c 6c 5f 5f 73 |n__s....|__all__s|
|00005200| 03 00 00 00 73 79 73 73 | 04 00 00 00 74 69 6d 65 |....syss|....time|
|00005210| 73 06 00 00 00 73 6f 63 | 6b 65 74 73 09 00 00 00 |s....soc|kets....|
|00005220| 6d 69 6d 65 74 6f 6f 6c | 73 73 0c 00 00 00 53 6f |mimetool|ss....So|
|00005230| 63 6b 65 74 53 65 72 76 | 65 72 73 09 00 00 00 63 |cketServ|ers....c|
|00005240| 53 74 72 69 6e 67 49 4f | 73 15 00 00 00 44 45 46 |StringIO|s....DEF|
|00005250| 41 55 4c 54 5f 45 52 52 | 4f 52 5f 4d 45 53 53 41 |AULT_ERR|OR_MESSA|
|00005260| 47 45 73 09 00 00 00 54 | 43 50 53 65 72 76 65 72 |GEs....T|CPServer|
|00005270| 73 0a 00 00 00 48 54 54 | 50 53 65 72 76 65 72 73 |s....HTT|PServers|
|00005280| 14 00 00 00 53 74 72 65 | 61 6d 52 65 71 75 65 73 |....Stre|amReques|
|00005290| 74 48 61 6e 64 6c 65 72 | 73 16 00 00 00 42 61 73 |tHandler|s....Bas|
|000052a0| 65 48 54 54 50 52 65 71 | 75 65 73 74 48 61 6e 64 |eHTTPReq|uestHand|
|000052b0| 6c 65 72 73 04 00 00 00 | 74 65 73 74 73 08 00 00 |lers....|tests...|
|000052c0| 00 5f 5f 6e 61 6d 65 5f | 5f 28 0c 00 00 00 73 09 |.__name_|_(....s.|
|000052d0| 00 00 00 6d 69 6d 65 74 | 6f 6f 6c 73 73 09 00 00 |...mimet|oolss...|
|000052e0| 00 63 53 74 72 69 6e 67 | 49 4f 73 0a 00 00 00 48 |.cString|IOs....H|
|000052f0| 54 54 50 53 65 72 76 65 | 72 73 06 00 00 00 73 6f |TTPServe|rs....so|
|00005300| 63 6b 65 74 73 07 00 00 | 00 5f 5f 61 6c 6c 5f 5f |ckets...|.__all__|
|00005310| 73 15 00 00 00 44 45 46 | 41 55 4c 54 5f 45 52 52 |s....DEF|AULT_ERR|
|00005320| 4f 52 5f 4d 45 53 53 41 | 47 45 73 03 00 00 00 73 |OR_MESSA|GEs....s|
|00005330| 79 73 73 04 00 00 00 74 | 65 73 74 73 04 00 00 00 |yss....t|ests....|
|00005340| 74 69 6d 65 73 16 00 00 | 00 42 61 73 65 48 54 54 |times...|.BaseHTT|
|00005350| 50 52 65 71 75 65 73 74 | 48 61 6e 64 6c 65 72 73 |PRequest|Handlers|
|00005360| 0b 00 00 00 5f 5f 76 65 | 72 73 69 6f 6e 5f 5f 73 |....__ve|rsion__s|
|00005370| 0c 00 00 00 53 6f 63 6b | 65 74 53 65 72 76 65 72 |....Sock|etServer|
|00005380| 28 00 00 00 00 28 00 00 | 00 00 73 51 00 00 00 2f |(....(..|..sQ.../|
|00005390| 4c 69 62 72 61 72 79 2f | 46 72 61 6d 65 77 6f 72 |Library/|Framewor|
|000053a0| 6b 73 2f 50 79 74 68 6f | 6e 2e 66 72 61 6d 65 77 |ks/Pytho|n.framew|
|000053b0| 6f 72 6b 2f 56 65 72 73 | 69 6f 6e 73 2f 32 2e 33 |ork/Vers|ions/2.3|
|000053c0| 2f 6c 69 62 2f 70 79 74 | 68 6f 6e 32 2e 33 2f 42 |/lib/pyt|hon2.3/B|
|000053d0| 61 73 65 48 54 54 50 53 | 65 72 76 65 72 2e 70 79 |aseHTTPS|erver.py|
|000053e0| 73 01 00 00 00 3f 12 00 | 00 00 73 1e 00 00 00 06 |s....?..|..s.....|
|000053f0| 33 06 02 0c 02 09 01 09 | 01 09 01 09 01 09 01 09 |3.......|........|
|00005400| 03 06 0d 19 0c 19 ff 00 | c7 12 17 0d 01 |........|..... |
+--------+-------------------------+-------------------------+--------+--------+